advanved-json-tools
Reactive icon

Advanved JSON Tools

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 28 Feb (11 hours ago)
 by 
EONE TECHNOLOGIES PRIVATE LIMITED
0.0
 (0 ratings)
advanved-json-tools

Advanved JSON Tools

Details
This component collection of JSON helper functions designed to work with JSON data safely and efficiently. These functions help validate whether a JSON input is correct, check if a JSON object or array is empty, and identify the root type of the JSON (object, array, or value). It also explains how to read data from JSON using paths, including retrieving specific values, counting the number of items in an array, and extracting all keys from an object in a comma-separated format. In addition, the document covers JSON modification operations, such as adding or updating values, removing keys safely, and merging two JSON objects with overwrite support. Formatting utilities like Beautify (for readable JSON) and Minify (for compact JSON) are included as well. Finally, the document explains JSON transformation features, including converting JSON into TOON and CSV formats. These transformations support nested objects and arrays, automatically handle structure expansion, and include built-in validation and error handling to ensure accurate output.
Read more

This component provides a comprehensive set of utility functions to validate, read, modify, and transform JSON data. It is designed to bridge the gap between raw JSON strings and structured data formats, offering both basic manipulation and advanced transformation capabilities.

1. Validation and Inspection

Ensure data integrity before processing with built-in diagnostic tools:

JSON_Validate: Validates whether the input text is a valid JSON structure.

JSON_IsEmpty: Checks whether a JSON object {} or array [] is empty.

JSON_GetType: Detects and returns the root JSON type.

2. Data Extraction and Navigation

Retrieve specific data points without manual parsing:

JSON_Value_By_Path: Retrieves a specific value from JSON based on a provided path.

JSON_Array_Length_By_Path: Returns the total number of elements in a JSON array at a specified path.

JSON_Keys_By_Path: Extracts all keys from a JSON object at a path and returns them as a CSV string.

3. Modification and Merging

Dynamically alter JSON structures within your logic flows:

JSON_AddOrUpdate: Adds a new value or updates an existing one at a specific JSON path.

JSON_RemoveKey: Safely removes a key or value from the JSON using a given path.

JSON_Merge: Merges two JSON objects, with an option to let values from the second JSON override the first.

4. Formatting and Optimization

Manage the visual structure and size of your payloads:

JSON_Beautify: Formats JSON with proper indentation for human readability.

JSON_Minify: Removes all unnecessary whitespace to reduce JSON size for optimized transmission.


5. Advanced Data Transformations

The component specializes in converting complex JSON into tabular-friendly formats:

JSON to TOON

Transforms a JSON array of objects into TOON format by dynamically extracting columns and rows.

Includes built-in validation and error handling for reliable processing.

JSON to CSV

Transforms structured JSON data into standard CSV (Comma-Separated Values) format.

Nested Support: Handles deeply nested objects and arrays.

Array Expansion: Automatically expands nested arrays into multiple CSV rows to ensure comprehensive data representation.




Release notes (1.0.0)
License (1.0.0)
Reviews (0)
Team
Other assets in this category