As i am working on a IoT project i need to learn JSONata to manipulate lots of JSON objects.
JSONata is underpinned by the semantics of the location path inspired by XPath, the ability to format the output into any JSON structure inspired by XQuery, and the functional programming model inspired by Scheme.
The semantics of the location path inspired by XPath
- Simple and intuitive syntax for selecting values within a structure.
- Powerful predicate mechanism for complex queries and data joins.
- Built-in functions and operators for manipulating and aggregating data.
The ability to format the output into any JSON structure inspired by XQuery
- Standard JSON syntax used for constructing new objects and arrays.
- Any valid JSON data is also a valid JSONata expression.
- Allows template style queries to be constructed.
The functional programming model inspired by Scheme.
- Implements the ‘metacircular evaluator’ described in SICP.
- Supports user-defined functions (closures).
- Turing complete.
The lightweight footprint of the runtime processor enables it to run in the web browser or as a node.js module with no package dependencies.
Take a look at http://jsonata.org