Reputation: 11
Is there any way to make play framework accept json labels without quotes?
I mean:
Accept not just:
{ "key" : "value" }
also:
{ key : "value" }
Thanks!
Upvotes: 1
Views: 215
Reputation: 11244
No, because that does not follow the json specification.
You could theoretically use the Nashorn scripting engine (available in the JVM) to parse the javascript object literal notation.