結果 : check if json or string javascript