json2caseclass
json2caseclass copied to clipboard
Generated code does not compile if member name is "type"
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 back ticks, like:
type
Just pushed a PR for this
As said @pierre-borckmans, related to #6