JSON Toolbox

Name

⬇️ libJsonTools.lrep

Version

3.2.2

Description

Functionality around dealing with JSON representations of objects and storing them in MongoDB

This library consists of the following parts:

JsonDiff

Calculate JSON patch from two JSONdocuments, or apply a patch to a document.

JsonMatch

Testing JSON strings or object instances for matching against a condition expressed in a DSL (Domain Specific Language) similar to WHERE clauses in SQL.

JsonNode

Parse and manipulate arbitrary JSON strings, without the need to create a class representation for it.

JsonPath

Find and extract parts of JSON object based on JsonPath queries.

JsonPointer

Extract part of JSON object using a JsonPointer (such as returned as part of a patch from JsonDiff).

Json Schema

Convert a JSON schema file to an XSD, ready to be imported into the PAS Builder.

JsonSQL

Generate SQL statements from JSON objects.

Overview

Library Overview.png

Particularities

When using the library, in addition to adding the library in the component diagram you also have to create a Java Service in your deployment and add the JsonToolsCallback. See below for an example (you can ignore the jvmOptions and other deployment artifacts):

UseJsonTools Components.png
📗