Hi guys,

I have an Javabin object ( it is actually a List data structure) and I need
to convert that to a JSon object.
I am using "Gson" and pass my List to it: gson.toJson(myList); , the rerturn
is just the same with couple of (") added to the begining and and end ....

could anybody help here, Thanks Paulo.
PS> here is a sample of my List:
myList=

[numFound:7496,type:[Book (6997), Periodical (396), Visual Material (75),
Mixed Material (23),
 Archival/Manuscript Material (4), Electronic Resource (1)], name:[Grosz,
George
 (39), Ludorff, A. (30), Baedeker, Karl (29), Merian, Matthaeus (18),
Zeiller, M
artin (16), Mehling, Marianne (15), Renger-Patzsch, Albert (15), Scha?fke,
Werne
r (15), Schinkel, Karl Friedrich (15), Engel, Helmut (13), Giersberg,
Hans-Joach

convert TO:


{"numFound":7496,"facet_fields":{"type":{"Book":6997,"Periodical":396,"Visual
Ma
terial":75,"Mixed Material":23,"Archival/Manuscript Material":4,"Electronic
Reso
urce":1},"topic":{"Architecture":1136,"History":1118,"Exhibitions":734,"Art":350
,"Art, German":275,"Excavations (Archaeology)":271,"Conservation and
restoration
....

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Javabin-to-JSON-convertor-tp2745263p2745263.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to