aspose file tools
The moose likes Other Open Source Projects and the fly likes Hashmap edit Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Hashmap edit" Watch "Hashmap edit" New topic
Author

Hashmap edit

robin sa
Greenhorn

Joined: Oct 12, 2009
Posts: 2
Hi there,
I have the following mapping at the moment with a json lib.


I wanted to add the field 'State' as a child of Library alongside
Books.

Such as.

Any info on mapping additional field would be great.

Thanks

Robin
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3268

Hi Robin and welcome to Javaranch!

What JSON lib are you using?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
robin sa
Greenhorn

Joined: Oct 12, 2009
Posts: 2
Thanks.

GSON

Type HashLib = new TypeToken<HashMap <String, HashMap<String, List<HashMap<String, String>>>>>() {}.getType();

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Hashmap edit
 
Similar Threads
Problem with Array search
Numberformater or substring or ????
Struts 2 Iterate tag not getting the customed format
Annotations and EJB's
Problem in a while loop