結果 : check if object is valid json javascript