This example describes jquery using the Getjson method to get JSON data. Share to everyone for your reference, specific as follows:
Demo.js:
[
{"
name": "WU", "
Sex": "Male",
"email": "demo1@123.com"
},
{
"name": "Wuzhong",
"sex": "Male",
"email": "demo2@123.com"
},
{
"name": "How to open",
"sex": "female",
"email": "demo3@123.com"
}
]
Demo.html:
The effect chart is as follows:
Here the JSON suffix name is changed to JS, and the WEB container can be read normally.
PS: Here again for you to recommend a few JSON online tools, I believe that you can use in future development:
Online JSON code inspection, inspection, landscaping, formatting tools:
Http://tools.jb51.net/code/json
JSON Online formatting tool:
Http://tools.jb51.net/code/jsonformat
Online Xml/json Mutual Conversion tool:
Http://tools.jb51.net/code/xmljson
JSON code online Format/beautify/compress/edit/Convert tools:
Http://tools.jb51.net/code/jsoncodeformat
C Language Style/html/css/json code formatting landscaping Tools:
Http://tools.jb51.net/code/ccode_html_css_json
More interested readers of jquery related content can view the site topics: "jquery operation JSON data tips Summary", "jquery Extension Tips Summary", "jquery common Plug-ins and Usage summary", "jquery drag and drop effects and tips summary", "jquery Table" ( Table) Summary of operational techniques, "Summary of Ajax usage in jquery", "jquery common Classic Effects Summary", "jquery animation and special effects usage Summary" and "jquery Selector usage Summary"
I hope this article will help you with your jquery programming.