'play.api.libs.json is not able to parse uuid string

In scala play application, I am trying to parse uuid as a json response but getting error:

play.api.libs.json.Json.parse(s"""
{
  "id" : "ac435876-fe73-4385-a9dd-af54ce2d7a7d"
}
""")

Error- play.api.http.HttpErrorHandlerExceptions$$anon$1: Execution exception[[JsonParseException: Unrecognized token 'C': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false') at [Source: (String)"



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source