Personally, I would suggest de-serializing the JSON strings back into objects and comparing the objects.
That way you don't have to worry about extra whitespace/formatting between the two JSON strings (two strings could be formatted wildly different and still represent equal objects).