Breadcrumbs

JSON Toolbox

Name

⬇️ libJsonTools.lrep

Version

2.14.0

Description

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

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 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.

https://scheer-pas-doc.atlassian.net/wiki/x/vYCRJQ

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.

https://scheer-pas-doc.atlassian.net/wiki/x/koGRJQ

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
📗