play-json icon indicating copy to clipboard operation
play-json copied to clipboard

The Play JSON library

Results 71 play-json issues
Sort by recently updated
recently updated
newest added

**(Moved from playframework/playframework#6756)** Actually reading optional fields / objects with Json Transformers is possible, but it is currently missing in our [documentation](https://www.playframework.com/documentation/2.5.x/ScalaJsonTransformers), so we should add something like that to...

help wanted
topic:documentation

**(Moved from playframework/playframework#6333)** `Json.parse` and `Json.stringify` currently don't allow any customization for how values are converted to and from `JsValue`. In some cases one may want to do that. For...

**(Moved from playframework/playframework#5863)** ### Actual Behavior ``` scala> import play.api.libs.json._ import play.api.libs.json._ scala> (__ \ "foo").readNullable[String] res0: play.api.libs.json.Reads[Option[String]] = play.api.libs.json.Reads$$anon$8@4a733e24 scala> res0.reads(Json.obj()) res1: play.api.libs.json.JsResult[Option[String]] = JsSuccess(None,) scala> res0.reads(JsString("hello")) res2: play.api.libs.json.JsResult[Option[String]]...

**(Moved from playframework/playframework#4651)** ``` Welcome to Scala version 2.11.6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_45). Type in expressions to have them evaluated. Type :help for more information. scala> import...

**(Moved from playframework/playframework#3880)** There are a number of interesting dataformats available for jackson, including: - [MsgPack](https://github.com/msgpack/msgpack-java/tree/v07-develop/msgpack-jackson) - [Yaml](https://github.com/FasterXML/jackson-dataformat-yaml) - [Smile](https://github.com/FasterXML/jackson-dataformat-smile) This probably involves transforming `JacksonJson` into a class that accepts...

**(Moved from playframework/playframework#3174)** In Scala 2.11, a case class can have more than 22 fields. We could modify our existing macros to support these. Here's approximately how to do it:...

**(Moved from playframework/playframework#952)** OWrites defines an implicit ContravariantFunctor[OWrites] it should be a ContravariantFunctor[Writes] ### use case lets have ``` scala case class PoneyFriend(friends: List[String]) object PoneyFriend { implicit def poneyFriendWrites:...

The following code extract from the play framework documentation ( [Doc](https://www.playframework.com/documentation/3.0.x/ScalaJsonAutomated#Requirements) ) ```scala sealed trait Role case object Admin extends Role case class Contributor(organization: String) extends Role import play.api.libs.json._ //...

### Play JSON Version (2.5.x / etc) 3.0.1 ### API (Scala / Java / Neither / Both) Scala ### Overview The project doesn't seem to have been set up for...

# Pull Request Checklist * [x] Have you read through the [contributor guidelines](https://www.playframework.com/contributing)? * [x] Have you [squashed your commits](https://www.playframework.com/documentation/latest/WorkingWithGit#Squashing-commits)? * [x] Have you added copyright headers to new files?...