This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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 Building Microservices this week in the Design 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: 3275

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
It's not a secret anymore!