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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
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: 3274
    
    5

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://aspose.com/file-tools
 
subject: Hashmap edit