I'm using liftweb to parse JSON from String in scala, some of record have 3 field
val a = {"name": "Alice", "age": 21, "job": "nurse"}
but some other have only 2 field
val b = {"name": "Bob", "age": 30}
I created case class Person(name: String, age: Long, job: String) and when I call parse(a) it return value successfully, but when I call parse(b) it appear exception
net.liftweb.json.MappingException: No usable value for algorithm
Did not find value which can be converted into java.lang.String