Util to normalize JSON