Thomas Vervik
Thomas Vervik

Reputation: 4535

Jsonapi.org and Play Framework

Are there any support for jsonapi.org JSON schema in Play Framework? If no, any good third party Java libraries which provides this support?

Upvotes: 3

Views: 269

Answers (1)

markolaban
markolaban

Reputation: 125

You can have a look at:

https://github.com/zalando/scala-jsonapi

some example use cases:

https://github.com/zalando/scala-jsonapi/blob/master/src/test/scala/org/zalando/jsonapi/json/ExampleSpec.scala

Alternatively, you could try to do this yourself in a standard way tailored to your use case using your own case classes and Play JSON combinators (https://www.playframework.com/documentation/2.5.x/ScalaJsonCombinators) according to the JSON API spec - I don't think it would be too much overhead and you will get more compile-time checks.

Upvotes: 1

Related Questions