Documentation Index
Fetch the complete documentation index at: https://docs.spojit.com/llms.txt
Use this file to discover all available pages before exploring further.
The JSON Tools connector provides operations for parsing, querying with JSONPath, and transforming JSON data within your workflows.
No connection required — this utility connector works out of the box.
parse — Parse a JSON string
Parse a JSON string into a structured object.Example request:{
"json": "{\"name\":\"Alice\",\"age\":30,\"active\":true}"
}
Example response:{
"name": "Alice",
"age": 30,
"active": true
}
stringify — Convert to JSON string
Serialize data to a JSON string.Pretty-print with indentation.
Number of indentation spaces.
Example request:{
"data": { "name": "Alice", "roles": ["admin", "user"] },
"pretty": false
}
Example response:"{\"name\":\"Alice\",\"roles\":[\"admin\",\"user\"]}"
query — Query with JSONPath
Extract data using JSONPath expressions.JSONPath expression (e.g., $.store.book[*].author).
Example request:{
"data": {
"store": {
"books": [
{ "title": "Dune", "price": 12.99 },
{ "title": "Neuromancer", "price": 9.99 },
{ "title": "Foundation", "price": 14.99 }
]
}
},
"path": "$.store.books[?(@.price<13)]"
}
Example response:[
{ "title": "Dune", "price": 12.99 },
{ "title": "Neuromancer", "price": 9.99 }
]
flatten — Flatten nested JSON
Convert nested objects to flat dot-notation keys.Preserve arrays instead of flattening them.
Example request:{
"data": {
"user": {
"name": "Alice",
"address": { "city": "Portland", "zip": "97201" }
}
}
}
Example response:{
"user.name": "Alice",
"user.address.city": "Portland",
"user.address.zip": "97201"
}
unflatten — Unflatten dot notation
Convert flat dot-notation keys back to nested objects.Example request:{
"data": {
"user.name": "Alice",
"user.address.city": "Portland",
"user.address.zip": "97201"
}
}
Example response:{
"user": {
"name": "Alice",
"address": { "city": "Portland", "zip": "97201" }
}
}
merge — Deep merge objects
Deep merge multiple objects together.Array of objects to merge.
Example request:{
"objects": [
{ "theme": "dark", "lang": "en", "notifications": { "email": true } },
{ "lang": "fr", "notifications": { "sms": true } }
]
}
Example response:{
"theme": "dark",
"lang": "fr",
"notifications": {
"email": true,
"sms": true
}
}
diff — Compare two objects
Find differences between two JSON objects.Example request:{
"obj1": { "name": "Alice", "age": 30, "city": "Portland" },
"obj2": { "name": "Alice", "age": 31, "role": "admin" }
}
Example response:[
{ "path": "age", "type": "changed", "oldValue": 30, "newValue": 31 },
{ "path": "city", "type": "removed", "oldValue": "Portland" },
{ "path": "role", "type": "added", "newValue": "admin" }
]
pick — Pick specific keys
Extract selected keys from an object.Example request:{
"data": { "id": 1, "name": "Alice", "email": "alice@example.com", "password": "hashed_pw" },
"keys": ["id", "name", "email"]
}
Example response:{
"id": 1,
"name": "Alice",
"email": "alice@example.com"
}
omit — Remove specific keys
Remove selected keys from an object.Example request:{
"data": { "id": 1, "name": "Alice", "email": "alice@example.com", "password": "hashed_pw" },
"keys": ["password"]
}
Example response:{
"id": 1,
"name": "Alice",
"email": "alice@example.com"
}
Retrieve a value using dot-notation path.Dot-notation path (e.g., user.address.city).
Default value if path not found.
Example request:{
"data": {
"user": {
"address": { "city": "Portland", "state": "OR" }
}
},
"path": "user.address.city"
}
Example response:
Set a value at a dot-notation path.Example request:{
"data": { "user": { "name": "Alice" } },
"path": "user.address.city",
"value": "Portland"
}
Example response:{
"user": {
"name": "Alice",
"address": { "city": "Portland" }
}
}
Remove all whitespace from a JSON string.Example request:{
"json": "{\n \"name\": \"Alice\",\n \"age\": 30\n}"
}
Example response:"{\"name\":\"Alice\",\"age\":30}"
Format a JSON string with indentation.Number of indentation spaces.
Example request:{
"json": "{\"name\":\"Alice\",\"age\":30}",
"indent": 4
}
Example response:"{\n \"name\": \"Alice\",\n \"age\": 30\n}"
Extract all keys from an object.Include nested keys with dot-notation.
Example request:{
"data": {
"name": "Alice",
"address": { "city": "Portland", "zip": "97201" }
},
"deep": true
}
Example response:["name", "address.city", "address.zip"]
Extract all values from an object.Example request:{
"data": { "name": "Alice", "age": 30, "active": true }
}
Example response: validate — Validate JSON string
Check if a string is valid JSON.Example request:{
"json": "{name: 'Alice'}"
}
Example response:{
"valid": false,
"error": "Expected property name or '}' at position 1"
}