/rbkcli/jsonfy
Methods
get
Description: Loads a json file or string, return json result which allows customization.
Parameters: As a parameter you have to pass a single string, being either formatted as natural key assignment or as json string. If the key passed is "file", then instead of loading the string jsonfy will attempt to load the json file. Following is the description of the parameters:
Response: The response will vary according to the entered json data.
Usage: It is used to take advantage of the filtering and tabling features of rbkcli with json outputs which are not generated by rbkcli commands. Also to provide input for advanced usage such as looping APIs and caching long output.
Example 1: You can use the output conversion.
Example 2: You can use key mapping.
Example 3: You can use key selection.
Example 4: You can also use it by providing the natural key assignment.
Example 5: You can assign the content of the file to bash variable and provide the variable as parameter. Obs.: The same can be done to any API that requires a json parameter.
[Back to Meta APIs]
Last updated