| 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();
|
 |
 |
|
|
subject: Hashmap edit
|
|
|