• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

deserialising javascript multidimensional array using json-lib

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to parse a JSON string into a bean's property. It works fine, except for mapping an array[][][] to a property. Using a sample piece of JSON, adding a subelement e.g. circles, has me stumped.
How do I get the array into the bean's property? Ideally, the property holding the array "circles" would be an arrayList or array of circles, with inner circles and finally point objects. How do I achieve this? I couldn't see how to achieve this. Stub code below.

Thanks,
Stuart

the sample jsonString is

I've also posted this here
http://sourceforge.net/mailarchive/message.php?msg_name=BAY126-W104FE371294CCF0A0354DC99A60%40phx.gbl
reply
    Bookmark Topic Watch Topic
  • New Topic