bolerio / mjson

Lean JSON Library for Java, with a compact, elegant API.
Apache License 2.0
82 stars 26 forks source link

Not serializable #19

Closed leolux closed 8 years ago

leolux commented 8 years ago

I integrated mjson inside a JSF web application and it requires the Json instances to be serializable: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: mjson.Json$ObjectJson

The issue may be solved by adding "implements Serializable" to the objects ArrayJson, BooleanJson, NullJson, NumberJson, ObjectJson and StringJson. What do you think?

bolerio commented 8 years ago

Hi,

This is already changed in 1.4-SNAPSHOT, which you could actually use instead of 1.3.

leolux commented 8 years ago

Alright, thanks! When wil 1.4 be released?

bolerio commented 8 years ago

https://oss.sonatype.org/content/repositories/snapshots/org/sharegov/mjson/1.4-SNAPSHOT/

You should be able to add the sonatype snapshot repo to your MAven settings.xml or pom.xml so you are able to access snapshot versions of libraries.

leolux commented 8 years ago

Thanks!

<repository>
        <id>sonatype-nexus-snapshots</id>
        <name>Sonatype Nexus Snapshots</name>
        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        <releases>
            <enabled>false</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
</repository>