I would like to verify that json contains a list of keys / values before trying to marshal the case class using lift-json. Data may be nested.
For instance:
{ "name": "stack", "desc": "desc", "age": 29, "address": { "street": "123 elm", "postal_code": 22222, "city": "slc", } }
How can I verify that this JSON contains values for "name", "age" and "address \ street"? Suppose all other fields are optional.
Sorry if I'm missing something obvious, but I suspect something like this has been resolved before.
By the way, will anyone try to Order? https://github.com/nparry/orderly4jvm
source share