This plugin has 2 page elements:
1. 'Json' element:
Store the Json structure specified in 'base_json' field and provides an action 'update json' in order to modify the json fields.
When json is modified due to 'update json' action, the event 'json_changed' is triggered so you can listen this event to take the proper actions.
2. 'read Json':
Read a field from json text. The json key could be a name of a simple key field or you can use JsonPath format for accessing to concrete fields in a complex json structure. For more details see
https://goessner.net/articles/JsonPath/.
IMPORTANT: Using a JsonPath as key will return the results as arrays on "read Json" properties!
When you want to create a JSON text, you place one 'Json' element, define the base json as input field and trigger the modify workflow in order to update the json fields. Then listen the 'json_changed' event for taking the correspondent actions.
When you want to read data from Json, use 'read Json' element. You place one unique element on the page for each piece of data you want to work with. You can provide the current json text value of a 'Json' element as 'read Json' in order to read one field of it.
Furthermore, if you want to read JSON fields at server-side (backend workflows), use the server-side action and enjoy.
Have fun! :)