HJSON component

HJSON Usage Example

In this article you will see a flow with which you will clearly see how and where the HJSON component is used.

JSON to HJSON

The first flow allows you to convert a JSON document to HJSON through the work of this component. Flow is as simple as possible and is a webhook which waits to send a JSON document (request body) and then converts it to HJSON and sends it back. Here you can see how HJSON component configuration looks like:

JSON to HJSON 1 Using Webhook we will send a small JSON code we want to convert into HJSON:

JSON to HJSON 2 As a result of the component’s work, we will receive a document in the HJSON format:

JSON to HJSON 3

HJSON to JSON

The second flow is exactly the same except that it works in the opposite direction. Here you can see how HJSON configuration looks like:

HJSON to JSON 1 Using Webhook we will send a small HJSON document we want to convert into JSON:

HJSON to JSON 2

Please Note: in order to pass an HJSON document in an inline string, we will need to make a json document containing that string.

As a result of the component’s work, we will receive a document in the JSON format:

HJSON to JSON 3