結果 : pass json object to function javascript