Aitor
Aitor

Reputation: 11

Play Framework json labels without quotes

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

Answers (1)

EECOLOR
EECOLOR

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.

Upvotes: 1

Related Questions