| $.parseJSON ( json ) | ใช้แปลงค่า json ให้เป็น Object |
|---|
syntax:$.parseJSON ( json )
return type:Object
content:ใช้แปลงค่า json ให้เป็น Object โดยค่า json มีรูปแบบ ได้แก่ "{'name':'Function.in.th'}'"
example:var jsonString = "{'name':'Function.in.th'}'"; var websiteObject = $.parseJSON ( jsonString ); alert ( websiteObject.name );