Menu

JSON[TREE] display

jucosorin
2007-10-03
2013-04-09
  • jucosorin

    jucosorin - 2007-10-03

    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.

     
    • jucosorin

      jucosorin - 2007-10-03

      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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.