Skip to main content

JSON

JSON Processor – Parse & Produce JSON

Summary (SEO Meta Description):
The JSON Processor in WeHub parses text into JSON or produces JSON from objects.
Configure schema validation and truncation options to safely handle structured data.


Overview

The JSON Processor supports two complementary actions:

  • Parse JSON → Convert raw text into a structured JSON object.
  • Produce JSON → Generate a JSON string from workflow objects.

Both actions support schema validation and truncation settings, ensuring clean and consistent JSON for downstream processing.


⚙️ Configuration Options

FieldTypeDescription
LabelStringCustom name for the node (e.g., "Parse Patient JSON").
Truncate FieldsBooleanToggle to shorten large field values.
Truncate LevelIntegerDepth or length limit when truncation is enabled.
SchemaSchemaSelect a schema for validation of the parsed or produced JSON.

💡 Example Use Cases

  • Parse JSON → Ingest incoming API payloads into structured workflow objects.
  • Produce JSON → Serialize workflow context into a JSON string for HTTP calls.
  • Validation → Enforce schema compliance on data at workflow boundaries.

FAQ

Q: What happens if JSON parsing fails?
A: The node fails with an error unless handled by workflow error management.

Q: Is schema validation mandatory?
A: No, if not selected, JSON is processed without validation.

Q: What does Truncate Fields do?
A: It limits the size of long string fields, useful for logging and debugging.


Keywords: WeHub JSON Processor, Parse JSON, Produce JSON, schema validation, structured data