Last active
March 8, 2018 18:16
-
-
Save xemasiv/7efac39584a9f5ef0a48a7e520f9f720 to your computer and use it in GitHub Desktop.
Sample json object.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id | value | |
---|---|---|
flare | ||
flare.analytics | ||
flare.analytics.cluster |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{"name": "Eve", "parent": ""}, | |
{"name": "Cain", "parent": "Eve"}, | |
{"name": "Seth", "parent": "Eve"}, | |
{"name": "Enos", "parent": "Seth"}, | |
{"name": "Noam", "parent": "Seth"}, | |
{"name": "Abel", "parent": "Eve"}, | |
{"name": "Awan", "parent": "Eve"}, | |
{"name": "Enoch", "parent": "Awan"}, | |
{"name": "Azura", "parent": "Eve"} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Object.keys(o) = array of object's keys / properties
Object.keys(o).length = integer
Using object instead of array keeps it simple.