結果 : check if string can be parsed to json javascript