IndiuMX JSONL To JSON Parser

Content Type: Module
Categories: Utility

Overview

Summary 

IndiuMX JSONL To JSON Parser 

API_JSONL_Handler: 

This Java action fetches an API response in JSONL format using the GET method and efficiently transforms it into a structured JSON format. 

Input Parameters required: 

  1. Location: The designated API endpoint for obtaining the response via the GET method. 

Headers: A key-value pair sent as part of an HTTP request or response. 

  1. Header1_Key, Header2_Key: String value of a header key (‘Authorization’, ‘Accept’) 

  1. Header2_Value, Header2_Value: String value of header values  

Pass these input parameters to the Java Action instead of using “Call Rest Activity” in a microflow. The Java action will return a structured JSON response directly based on the provided parameters. 

Convert JSONLtoJSON: 

This Java action transforms a given JSONL input string into a structured JSON format. 

Input Parameters Required: JSONL string value 

Paste your JSONL input into a string variable, pass it as an input parameter for the java action, and get JSON format structure as output. 

JSONL (JSON Lines) is a format for storing structured data, where each line is a separate JSON object. 

JSON (JavaScript Object Notation) represents structured data in an array format, making it easier to process and manipulate in applications. 

Why JSONL? 

JSONL makes it easy to process large datasets because you can read it line by line instead of loading everything at once. 

Some instances where JSONL to JSON conversion required: 

  1. REST API Integrations – Some APIs return JSONL, but Mendix expects JSON. 

  1. Data Processing – JSON is more structured and easier to manipulate. 

  1. Logging & Reporting – Converting logs into JSON arrays for better analysis. 

By implementing these Java Actions, Mendix applications can seamlessly convert JSONL to JSON, improving data handling and integration capabilities. 

Documentation

Typical usage scenario

Java action that fetches an API response in JSONL format using the GET method and efficiently transforms it into a structured JSON format. 

Java action which  transforms a given JSONL input string into a structured JSON format. 

Features and limitations

Only GET method is used to get response from API.

Dependencies [optional]

jackson-annotations-2.18.3

jackson-core-2.18.3

jackson-databind-2.18.3

Installation [optional]

NA

Configuration [optional]

NA

Known bugs [optional]

NA

Frequently Asked Questions [optional]

Releases

Version: 2.0.0
Framework Version: 10.0.0
Release Notes: Dynamic string values can be passed inside the variables as input paramaters of the Java Action.
Version: 1.0.0
Framework Version: 10.0.0
Release Notes: First Release