First of all, great job! It a really useful plugin.
In the tree display, there is no difference between hashes and arrays. For the example you provided I would display the data as follows:
jsonTree --->#Cars --->[0]-->#Honda --->[0]-->CRV --->[1]-->Accord --->[2]-->Civic --->[1]-->#Toyota --->[0]-->Camry --->[1]-->Corolla
In this way people can differentiate hashes from arrays and also be able to construct the path to the desired object in JavaScript.
Hmmm...The spaces in the post were stripped.
jsonTree --->#Cars ------->[0]-->#Honda ------------->[0]-->CRV ------------->[1]-->Accord ------------->[2]-->Civic ------->[1]-->#Toyota ------------->[0]-->Camry -------------->[1]-->Corolla
that is what I meant.
Log in to post a comment.
First of all, great job! It a really useful plugin.
In the tree display, there is no difference between hashes and arrays. For the example you provided I would display the data as follows:
jsonTree
--->#Cars
--->[0]-->#Honda
--->[0]-->CRV
--->[1]-->Accord
--->[2]-->Civic
--->[1]-->#Toyota
--->[0]-->Camry
--->[1]-->Corolla
In this way people can differentiate hashes from arrays and also be able to construct the path to the desired object in JavaScript.
Hmmm...The spaces in the post were stripped.
jsonTree
--->#Cars
------->[0]-->#Honda
------------->[0]-->CRV
------------->[1]-->Accord
------------->[2]-->Civic
------->[1]-->#Toyota
------------->[0]-->Camry
-------------->[1]-->Corolla
that is what I meant.