Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 500 Bytes

NOTES.md

File metadata and controls

24 lines (21 loc) · 500 Bytes

Notes

Document structure

To get the structure of the document with most properties hidden. Useful to quickly explore the structure.

jq '.document | walk(
    if type == "object" then
        {name, type} + if has("children") then
            {children}
        else
            {}
        end + if has("characters") then
            {characters}
        else
            {}
        end
    else
        .
    end
)' -C < example-figma-files/design-tokens-for-figma.json | less -R