Hi Pablo,

Pablo Pazos wrote:

> 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?

Please have a look at the answer I gave Lynn some days ago. Following that 
recommendation will also solve your case.

Cheers,
Jörg


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to