結果 : how to check if string is valid json javascript