Can anyone help out here? It seems that since EE uses { and } that it interperets JSON as an EE tag.
I need to pass JSON to a plugin, how is that possible?
Can anyone help out here? It seems that since EE uses { and } that it interperets JSON as an EE tag.
I need to pass JSON to a plugin, how is that possible?
I 'm wondering if you are preparing JSON data within the template and would like to pass within a plugin via plugin parameter.
Rather than it, just access that object or array within plugin and use PHP's function json_encode
Since I figured out that i can pass the javascript object to the template and do my parsing there, I decided to forego messing with the JSON in the template. I still handle the JSON in my plugin but I'm taking the passed parameters and building the JSON from it.
Thanks for the help and comments.
I had the same problem. in my case I store the JSON data in a felid, but before I save it I do php STR_REPLACE {} to <>. while decoding to php array I do reverse the <> to {}. it works fine with me . hope you find this helpful