Hi,
I'm trying to serialize to JSON an object that has a HashMap field, the
output is something like this:
"originalAuthor": [
[
"organisation",
"Ocean Informatics"
],
[
"name",
"Chunlan Ma"
],
[
"date",
"16/11/2006"
]
]
But I expected something more like a JSON object:
"originalAuthor": {
"organisation": "Ocean Informatics",
"name": "Chunlan Ma",
"date": "16/11/2006"
}
This is a simple example, field values can be complex objects.
Is there some way of generating a structure like this for Map Java objects?
Thanks a lot.
--
Atte.
Ing. Pablo Pazos Gutiérrez
LinkedIn: http://uy.linkedin.com/in/pablopazosgutierrez
Blog: http://informatica-medica.blogspot.com/
Sígueme en twitter: http://twitter.com/ppazos