users@jersey.java.net

Re: [Jersey] Json output not always matching xml output

From: Paul Taylor <paul_t100_at_fastmail.fm>
Date: Thu, 12 Nov 2009 14:54:39 +0000

Paul Sandoz wrote:
> Hi,
>
> This looks like a bug in JSON attribute processing. I will let Jakub
> deep dive further :-) but that will require that you send schema or
> send a simple maven project to reproduce.
>
> Paul.
Hi, thanks for the quick reply

Its an opensource project so that makes thing easier, its in two
separate projects both built with maven, although neither are in a maven
repos at the moment.

The schema and schema classes are available from svn at
http://svn.musicbrainz.org/mmd-schema/trunk/brainz-mmd2-jaxb , and is
browsable at
http://bugs.musicbrainz.org/browser/mmd-schema/trunk/brainz-mmd2-jaxb
The code that is using this schema to generate json is at
http://svn.musicbrainz.org/search_server/branches/ngs, and the classes
you might might want to check is:

http://bugs.musicbrainz.org/browser/search_server/branches/ngs/servlet/src/main/java/org/musicbrainz/search/servlet/mmd2/ResultsWriter.java

Paul