Thanks for your comments, and you are correct in assessing this is for a specific use case (I'm migrating data between 2 structures and want to make sure the exported JSON is EXACTLY the same).
For the first point, I really only care that all values in the source are also in the target. If I wanted to be thorough, I woudl run the compare in both directions, but since I'm expecting that the target will contain additional properties, I only need a 1 way compare)
For the second point, I actually define the ordering of exporting of arrays explicitly, so I would expect a like for like compare. For other cases, additional logic would need to be added, as you pointed out
For the last point, this should return a mismatch, which is good enough for my use case, but again, might not be ideal for other use cases
That would be an easy adjustment to make. In my use case I'm also interested in knowing which fields are mismatching, and there may be multiple mismatches (hopefully not) per export
I beileve https://community.intersystems.com/post/rest-how-pass-query-parameters#a... has an example of this
Log in or create a new account to continue