結果 : check if type is json javascript