It's often useful to be able to compare the output of something with the previously generated result - e.g. taken from API specs.
However, currently Insta requires that the two are in the exact same format. That is, the fields in the same order, the same whitespace, etc.
It would be very useful if this could be relaxed so that the comparison is that the JSON is semantically the same, rather than being character-wise the same.
For example, the following are semantically the same but would fail on Insta:
{
"a": 1,
"b": [
1,
2
]
}
Cheers
It's often useful to be able to compare the output of something with the previously generated result - e.g. taken from API specs.
However, currently Insta requires that the two are in the exact same format. That is, the fields in the same order, the same whitespace, etc.
It would be very useful if this could be relaxed so that the comparison is that the JSON is semantically the same, rather than being character-wise the same.
For example, the following are semantically the same but would fail on Insta:
{ "a": 1, "b": [ 1, 2 ] }{ "b": [1, 2], "a": 1 }Cheers