You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to introduce support for JSON literals, in line with what already done in #170?
The project in which I'm using dentaku allows users to manipulate pieces of JSON and interpolate their own variables into them. It would be great to be able to do something like this:
I think this gem only focuses on string evaluation, so what you probably want is support for associative arrays (hashes). In the situation you presented, I'd imagine that it might be enough to just write {"foo": {"bar": [ my_var ]}} directly in Ruby, without the need for any string evaluation. But if you want to be able to use hashes written as a string, then if associated arrays were supporteed you'd be able to do something like (notice that it is not a hash directly being passed to evaluate, but a string representing one):
Would it be possible to introduce support for JSON literals, in line with what already done in #170?
The project in which I'm using dentaku allows users to manipulate pieces of JSON and interpolate their own variables into them. It would be great to be able to do something like this:
The text was updated successfully, but these errors were encountered: