cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to easily show what key values do not match between two JSON objects?

Imran
New Contributor
 
1 REPLY 1

alchemiz
Contributor III

Hi @Imran ,

Good day, a Diff snap might help look in the MODIFIED output
https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438546/Diff

alchemiz_0-1700633373299.png

 


or
you can use some of the object/array methods to list all the key names that doesn't matches the value
e.g
$myObject.keys().filter((a,b,c)=> $myObject.get(a) != $baseObject.get(a)).join(',')

Thanks,
EmEm