JSON Parser for Front
Overview
Parse Json file in the frontend and native apps with nanoflows.
Parse the JSON to a tree of object, or find a value based on the path of keys.
Used to handled payloads in the frontend (rest call, mqtt, etc), or used to optimize the offline cache management by caching a single file instead many objects.
Documentation
Description
Allows to manipulate JSON in the frontend with nanoflows including in native apps.
Load the JSON string to a tree of non persistent objects that you can parse later.
Find a value based on its path of keys and return a list of found json objects (without creating the whole tree)
- Use the pipe “|” as separator. For arrays levels, use keyword "array"
- example = key1|array|key2|key3
Try the module in the sample app : https://frontjsonparser-sandbox.mxapps.io/
Typical usage scenario
Manipulate all kinds of JSON payloads (Rest responses or MQTT messages) received with the frontend modules.
Used to optimize the offline cache management by caching a single file instead many objects.
Dependencies
- Mx 9.16.1
Installation
Import module, the nanoflow activities are available in the “Json Parser” category.
Known bugs
none