How is your experience with the OutSystems Community?
DiffEntity

DiffEntity (ODC)

Stable version 0.1.2 (Compatible with ODC)
Uploaded on 19 Apr by Kerollos Adel
DiffEntity

DiffEntity (ODC)

Details
Detailed Description

DiffEntity is a lightweight OutSystems External Library that provides a simple and reliable way to compare two JSON objects and identify differences between them.

The component analyzes all properties from both JSON inputs, even when their structures differ, and returns a structured comparison result showing property names and values from each object. This makes it ideal for detecting changes, missing fields, and updated values across integrations and data flows.

DiffEntity is designed to fully comply with OutSystems External Library constraints by returning results as JSON text, allowing developers to deserialize and process collections safely within OutSystems.


Key Highlights

  • Compares two JSON objects as text
  • Detects changed, added, and missing properties
  • Supports objects with different schemas
  • Option to return only differences or all properties
  • Optimized for OutSystems integrations and audit scenarios
  • Lightweight and production‑ready
Limitations
  • The comparison supports flat JSON objects only. Nested objects are not compared recursively and are treated as string values.
  • JSON arrays are not analyzed element by element; array values are compared as plain text.
  • Property value comparison is string‑based, meaning type‑specific differences (e.g., numeric vs string) are not distinguished.
  • The library does not infer data types or perform schema validation.
  • Large JSON objects may impact performance, as the comparison is performed in memory.
  • The result is returned as JSON text due to OutSystems External Library constraints; consumers must deserialize the result within OutSystems.
  • Property order in the input JSON does not affect the comparison result.


License

-- NA --