I get maps such as:
Map(reference -> Map(scriptRenderings -> List(Map(text -> महा-सुभाषित-सङ्ग्रहे 9979, scheme -> null, startLetter -> म)), jsonClass -> QuoteText, metre -> None, key -> महा-सुभाषित-सङ्ग्रहे9979, language -> Map(code -> UNK))
)
from my couchdb-lite database library.
- I need to convert them into case classes I've defined. How do I accomplish this (preferably with lift-json, which I'm already using)?
- And how to convert this map to a JSON object ? (Essentially reversing this.)