I came accross this component on another lo-code platform and thought it was a great idea - a diff-tool for JSON which outputs the results in a human-readable, side-by-side, way but can also pass out the diffs in an array to be used elsewhere. If you're ever dealing with a situation where you want to quickly understand the raw before/after effects of a data change then this kind of component can be really useful.
Then added a JS query (note that the JSON I'm comparing is actually converted from XML, but you probably don't care about that step)...
var a = tfrEntityBeforeXMLtoJSON.value;
var b = tfrEntityAfterXMLtoJSON.value;
var delta = jsondiffpatch.diff(a,b);
if (delta == null){
delta = "Nothing to compare or there are no differences.";
return delta;
}else{
return jsondiffpatch.formatters.html.format(
delta
);
}
The result of which renders onto a HTML component...
There hasn't been movement on including this component yet but we can let you know here when there is! In the meantime, you might be able to create a diff viewer using a custom component with some 3rd part libraries. The JSON attached here uses jsdiff alongside diff2html to generate diffs!
Hi @Yaron_Shahverdi, this feature hasn’t been prioritized yet, but we’ve added your +1 and resurfaced it internally. We’ll keep you updated here if there’s any progress.