[
https://issues.apache.org/jira/browse/JENA-184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13180836#comment-13180836
]
Rob Vesse commented on JENA-184:
--------------------------------
You applied the patches against ARQ trunk from the Apache repository I assume
rather than the old SourceForge repositories which are no longer updated?
I've looked over the writer code again and can't see any obvious reason why it
should produce invalid JSON like you saw, can you provide a minimal code sample
that shows this behaviour?
All the unit tests present for RDF/JSON still pass with these patches so either
there is something different in your environment or you're hitting a corner
case that the unit tests don't cover.
I even created an additional unit test that generates the graph you are
attempting to serialize based on your attached JSON fragment and that passed OK
so not sure what is going on with this until I can see a fuller example of how
the graph is generated and the writer is invoked.
> RDFJSONWriter writes illegal JSON when there is two objects of the same
> subject-predicate.
> ------------------------------------------------------------------------------------------
>
> Key: JENA-184
> URL: https://issues.apache.org/jira/browse/JENA-184
> Project: Jena
> Issue Type: Bug
> Components: RIOT
> Reporter: Andy Seaborne
> Attachments: Jena184_RDFJSONWriter.java,
> RdfJsonBadObjectListArrayWritingPatch.patch, RdfJsonBadObjectListPatch.patch,
> invalid.json
>
>
> RDFJSONWriter writes illegal JSON when there is two objects of the same
> subject-predicate.
> But the RDF/JSON reader can read the illegal JSON.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira