Hi all,
I have some code that looks like the following:
val results = MLBEditorialDAO.find(startDate, endDate, editorialType)
val editorials = results.map(grater[MLBEditorial].asObject(_))
editorials.map(grater[MLBEditorial].toPrettyJSON(_)).toList
In this case, the resulting JSON gets some weird escaping that looks like the following when I view the result:
[ "{\n \"msg_id\":4680391,\n \"timestamp\":\"2014-03-24T12:42:00Z\",\n \"heading\":\"AAN;QUINTANA-CWS-P1\",\n \"url\":\"/mlb/news/AAN4680391.htm\",\n \"sms\":\"White Sox, Quintana agree to 5-year deal\",\n \"text\":\"Glendale, AZ (SportsNetwork.com) - The Chicago White Sox have agreed to terms with pitcher Jose Quintana on a five-year contract, which includes two club options through 2020.\",\n \"updated_at\":\"2014-03-25T16:18:22Z\"\n}" ]
I'm guessing I'm doing something silly here. If anyone can spot it, that would be awesome.
Thank you for the help.