sjson
sjson copied to clipboard
Scala Json with capabilities for Scala Object Serialization
Hi there! This is WhitespaceBot. I'm an [open-source](https://github.com/Gunio/LightWrite) robot that removes trailing white space in your code, and gives you a gitignore file if you didn't have one! Why whitespace?...
Hi I have a case class . case class User( name: Name, gender: String ,age:string} This is a sample case class in some cases my json is incomplete like {"name":"sagar","gendar":"male"}...
"net.debasishg" % "sjson_2.9.2" % "0.19" scalaVersion := "2.9.3" test code: ``` scala package test case class QueryJson( time_from: Int, time_to: (Int, Int) ) object Main { import sjson.json._ import DefaultProtocol._...
When dispatch got rebooted, its json lib got removed. So what would be the ideal upgrade path for json library behind sjson? Looks like Dispatch Reboot supports json4s (native &...
Double.PositiveInfinity, Double.NaN, etc. In my local branch I've got: ``` scala implicit object DoubleFormat extends Format[Double] { def writes(o: Double) = try { JsValue.apply(o) } catch { // we need...
There is this project called 'Salat' here on Github that is able to serialize case classes without any 'help' from annotations. Have a look: https://github.com/novus/salat/wiki/Design Maybe this mechanism could be...
Introspection of beans often lead to processing same meta-data repeatedly .. e.g. List of Beans lead to processing of the bean meta-data many times (O(n)). Can this be improved with...
Why not to use val field = context.get.getDeclaredField(props.get(name).get) val fieldInnerType = field.getGenericType.asInstanceOf[ParameterizedType].getActualTypeArguments()(0) instead of val field = context.get.getDeclaredField(props.get(name).get) val ann = field.getAnnotation(classOf[JSONTypeHint]) when determining types of elements in list field?...
Hi there -- First of all, I'd like to extend my gratitude to all contributors for providing this really useful library. In addition, I wanted to know whether it'd be...