https://github.com/siddhi-io/siddhi-execution-json
Extension that provides the capability to send a map object inside Siddhi stream definitions and use it within queries
https://github.com/siddhi-io/siddhi-execution-json
execution extension json json-parser siddhi utility
Last synced: 2 months ago
JSON representation
Extension that provides the capability to send a map object inside Siddhi stream definitions and use it within queries
- Host: GitHub
- URL: https://github.com/siddhi-io/siddhi-execution-json
- Owner: siddhi-io
- License: apache-2.0
- Created: 2018-07-05T11:32:08.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-06T09:52:48.000Z (4 months ago)
- Last Synced: 2025-04-24T03:07:14.969Z (2 months ago)
- Topics: execution, extension, json, json-parser, siddhi, utility
- Language: Java
- Homepage: https://siddhi-io.github.io/siddhi-execution-json/
- Size: 1.38 MB
- Stars: 2
- Watchers: 26
- Forks: 23
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Siddhi Execution JSON
======================================[](https://wso2.org/jenkins/job/siddhi/job/siddhi-execution-json/)
[](https://github.com/siddhi-io/siddhi-execution-json/releases)
[](https://github.com/siddhi-io/siddhi-execution-json/releases)
[](https://github.com/siddhi-io/siddhi-execution-json/issues)
[](https://github.com/siddhi-io/siddhi-execution-json/commits/master)
[](https://opensource.org/licenses/Apache-2.0)The **siddhi-execution-json extension** is a Siddhi extension that provides capability to retrieve, insert, and modify JSON elements.
For information on Siddhi and it's features refer Siddhi Documentation.
## Download
* Versions 2.x and above with group id `io.siddhi.extension.*` from here.
* Versions 1.x and lower with group id `org.wso2.extension.siddhi.*` from here.## Latest API Docs
Latest API Docs is 2.0.11.
## Features
* group *(Aggregate Function)*
This function aggregates the JSON elements and returns a JSON object by adding enclosing.element if it is provided. If enclosing.element is not provided it aggregate the JSON elements returns a JSON array.
* groupAsObject *(Aggregate Function)*
This function aggregates the JSON elements and returns a JSON object by adding enclosing.element if it is provided. If enclosing.element is not provided it aggregate the JSON elements returns a JSON array.
* getBool *(Function)*
Function retrieves the 'boolean' value specified in the given path of the JSON element.
* getDouble *(Function)*
Function retrieves the 'double' value specified in the given path of the JSON element.
* getFloat *(Function)*
Function retrieves the 'float' value specified in the given path of the JSON element.
* getInt *(Function)*
Function retrieves the 'int' value specified in the given path of the JSON element.
* getLong *(Function)*
Function retrieves the 'long' value specified in the given path of the JSON element.
* getObject *(Function)*
Function retrieves the object specified in the given path of the JSON element.
* getString *(Function)*
Function retrieves value specified in the given path of the JSON element as a string.
* isExists *(Function)*
Function checks whether there is a JSON element present in the given path or not.
* setElement *(Function)*
Function sets JSON element into a given JSON at the specific path.
* toObject *(Function)*
Function generate JSON object from the given JSON string.
* toString *(Function)*
Function generates a JSON string corresponding to a given JSON object.
* tokenize *(Stream Processor)*
Stream processor tokenizes the given JSON into to multiple JSON string elements and sends them as separate events.
* tokenizeAsObject *(Stream Processor)*
Stream processor tokenizes the given JSON into to multiple JSON object elements and sends them as separate events.
## Dependencies
There are no other dependencies needed for this extension.
## Installation
For installing this extension on various siddhi execution environments refer Siddhi documentation section on adding extensions.
## Support and Contribution
* We encourage users to ask questions and get support via StackOverflow, make sure to add the `siddhi` tag to the issue for better response.
* If you find any issues related to the extension please report them on the issue tracker.
* For production support and other contribution related information refer Siddhi Community documentation.