This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Hashmap edit" Watch "Hashmap edit" New topic

Hashmap edit

robin sa

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

Such as.

Any info on mapping additional field would be great.


Martijn Verburg

Joined: Jun 24, 2003
Posts: 3274

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

Joined: Oct 12, 2009
Posts: 2


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

I agree. Here's the link:
subject: Hashmap edit
Similar Threads
Problem with Array search
Struts 2 Iterate tag not getting the customed format
Annotations and EJB's
Numberformater or substring or ????
Problem in a while loop