Skip to content
This repository

Scala Json with capabilities for Scala Object Serialization

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 project
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.textile
README.textile

sjson: Transparent JSON Serialization in Scala

sjson offers non intrusive serialization of Scala objects into JSON. You can use sjson to serialize built in types, the basic generic data types and any custom data type that you design. Two types of serialization are supported right now :-

  1. Reflection based that offers JSON serialization capabilities without any user intervention. You define your class, use some of the out-of-the-box annotations (if required) and invoke the serialization API
  2. Typeclass based, that defines a serialization protocol that needs to be implemneted for custom data objects. For built-in types, the default protocol implemnetation comes out of the box. This is very much a work in progress and will evolve with time. The current implementation, however is fairly robust though not yet fully complete.

For more details of the implementation and sample examples, have a look at the wiki.

News

2011/07/11: sjson 0.13 released

  • Bug fixes in reflection based API
  • Now compiles with scala 2.9.0-1
  • A few minor enhancements in typeclass based serialization

2011/05/16: sjson 0.12 released

  • Major improvements in reflection based API
  • De-serialization is more type-safe now – no need to cast
  • Improved deep serialization of generic structures in reflection based APIs
  • Improved test cases

2011/03/26: sjson 0.10 released

  • bug fixes in serialization of Enumerations and Options
  • builds with Scala 2.8.1 and Scala 2.9.0.RC1
  • refactoring of code
  • dependency on scalaz removed and moved to separate project sjson-scalaz

2010/09/16: sjson 0.8 released

  • type class based JSON serialization enhanced
  • fixed bug in reflection based serialization

2010/07/28: sjson 0.7 released

License

This software is licensed under the Apache 2 license, quoted below.

Licensed under the Apache License, Version 2.0 (the “License”); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.

Something went wrong with that request. Please try again.