argonaut-io / argonaut

Purely functional JSON parser and library in scala.
Other
547 stars 112 forks source link

QuasiQuoter to build json? #81

Open markhibberd opened 10 years ago

markhibberd commented 10 years ago

Someone asked me about it. Good idea or not?

seanparsons commented 10 years ago

Something like:

json"""{"key":$value}"""

?

I can see that being quite handy for sure, I'm just pondering how it would work, as we'd pretty much need a duplicate of the current parser for handling that text I think.

jutley commented 10 years ago

This is an interesting idea. I'll have a go at implementing this feature.