News for hackers. Stuff that matters.
Re:Show HN: JSON.equals in Java to compare two JSON's by mscasts on Monday December 10, 2018 @03:37AM (#18646226)
Can't one just simply check if the strings are equal?
Re:Show HN: JSON.equals in Java to compare two JSON's by sanketsarang on Monday December 10, 2018 @03:42AM (#18646246)
No string compare does not work, as the order of elements may not be the same so the strings may not be the same. The utility will report both JSON's as equal even if order of elements is different.
Re:Show HN: JSON.equals in Java to compare two JSON's by mscasts on Monday December 10, 2018 @05:23AM (#18646731)
Ok cool, thanks for the explanation!