Execution JSON

thumbnail
(0)

Version 1.0.6  by WSO2

Category : Siddhi Execution
Supported Product Version : S P 4 . 2 . 0  

Summary

The siddhi-execution-json extension is an extension to Siddhi that provides a rich set of capabilities to retrieve data from JSONs and inserting/modifying elements in JSONs using Siddhi streams.


Associated Tags

json siddhi siddhi-execution

Features provided by siddhi-execution-json extension


  • getBool function

    This method will return the Boolean value of Json element corresponding to the given path. If there is no valid Boolean value at the given path, the method will return 'false'.
  • getDouble function

    This method will return the double value of Json element corresponding to the given path. If there is no valid Double value at the given path, the method will return 'null'.
  • getFloat function

    This method will return the Float value of the Json element corresponding to the given path. If there is no valid Float value at the given path, the method will return 'null'.
  • getInt function

    This method will return the Integer value of Json element corresponding to the given path. If there is no valid Integer value at the given path, the method will return 'null'
  • getLong function

    This method will return the Long value of the Json element corresponding to the given path. Ifthere is no valid Long value at the given path, the method will return 'null'.
  • getObject function

    This method will return the object of Json element corresponding to the given path.
  • getString function

    This method will return the string value of Json element corresponding to the given path.
  • toObject function

    This method will return the json object related to given json string.
  • toString function

    This method will return the json string related to given json object.
  • tokenize function

    This will tokenize the given json according the path provided.

Extension


Social Sites