json2caseclass
json2caseclass copied to clipboard
Kickstart your scala API client by turning JSON into case classes.
Should be useful to have: - Beautify button to format JSON - Replace the text box with a JSON editor like this one https://jsonlint.com/
To follow a complete typesafe approach, leaf level values should **NOT** be converted to primitive types. but instead, to [value classes](https://docs.scala-lang.org/overviews/core/value-classes.html) e.g. ```json { "id": 2, "name": "Steve Nash", "score":...
If a json object has a field with name length the internal code seems to set the value to some internal length attribute and you get an error of "...
Currently, if the JSON contains snake_case names, these are used as-is in the case classes: an option to convert `abz_xyz` in the JSON to `abcXyz` in the case class would...
I wonder if you have any interest in migrating the project to scala.js I started a project to migrate the code scala.js He is the link to the project: https://github.com/onilton/json2caseclass...
Type is a reserved word in Scala, if you try to generate a case class for something like: `{"type": "a"}` it will not compile. Solution: generate case class code with...
When generating case classes from JSON with duplicated field names we get duplicated class names and inability to parse. Example: ``` { "root": { "a": { "b": "c", "a": {...