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
I'm adding data to a Jason field via AJAX by posting to a controller in another plugin. I noticed Jason Field expects a String as it does a JSON.decode() by default.
Maybe this could be altered and have an extra check for the Array type?
If I pass a JavaScript object in my fetch data like this: fields[jasonFieldHandle] the JasonField gets its data as an Array.
Now I need to have an extra JSON.stringify() in my JS code, which is not terrible, but it is weird from a developer point of view that I cannot pass valid JSON to a JSON field :)
The text was updated successfully, but these errors were encountered:
I'm adding data to a Jason field via AJAX by posting to a controller in another plugin. I noticed Jason Field expects a String as it does a
JSON.decode()
by default.Maybe this could be altered and have an extra check for the Array type?
If I pass a JavaScript object in my fetch data like this:
fields[jasonFieldHandle]
the JasonField gets its data as an Array.Now I need to have an extra
JSON.stringify()
in my JS code, which is not terrible, but it is weird from a developer point of view that I cannot pass valid JSON to a JSON field :)The text was updated successfully, but these errors were encountered: