struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Obster <>
Subject [Struts] [JSON] How to build a JSON for jsTree (array without variable name)
Date Thu, 10 Dec 2009 06:38:37 GMT

I'm trying to build a correct JSON for usage with jsTree. Therefor I 
need like that:
   { attributes: { id : "pjson_1" },
                  data: "Root node 1",
   { attributes: { id : "pjson_5" },
                  data: "Root node 2" }

As you can see if you need to root nodes in the tree you have to put 
them in an array, but I don't know how I can build the structure with 
the json-plugin from struts Using a variable with getter and 
setter creates always like:
varname: ...

Can anyone tell how this is done?

Kind regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message