I was wondering how is it popssible to populate forms using JSON?
I have a JSON string which I get using php’s json_encode()
And I want to use the JSON string to populate form controls (such as textarea or text input).
How can I achieve such thing without using external plugins (like jQuery populate plugin, which I saw).
EDIT: JSON format:
[{"id":"41","parent_id":null,"node_name":"name","slug":"","lft":"3","rgt":"4"}]
This is what I get from json_encode()
There is a problem here with
textarea, then I change it to adefaultswitch valueUse this to assign values to Many Controls :