Soumya Simanta
Soumya Simanta

Reputation: 11751

Creating case class structure from a Json example file

I've a JSON representation (for a Web Service). The JSON has quite a large number of fields. I want to deserialize(serialize) Json to a case class (case to Json) so that I can use it inside Spray/Play framework.

Before I start writing my case classes I was wondering if there is something that allows the creation a set of case classes from an example Json. Something similar to how you can create Java classes for an XML/SOAP schema.

Upvotes: 2

Views: 1630

Answers (1)

Julien Lafont
Julien Lafont

Reputation: 7877

Someone has made this useful application http://json2caseclass.cleverapps.io.

Link to Github repo

Upvotes: 6

Related Questions