Reputation:
I am doing one project for a NGO. They do not have any database. For their address list of 150 and above, I have created an json file and the details are arranged as below. The JSON file : "details.json"
{
"details": [
{ "Name":" ",
"Age":" ",
"Company":" ",
"Address1":" ",
"Address2":" ",
"Address3":" ",
"Address4":" " ,
"Pincode":" ",
"Email":" ",
"Fax":" ",
"Phone1":" "
"Phone2":" ",
"Type":" "
},
{ "Name":" ",
"Age":" ",
"Company":" ",
"Address1":" ",
"Address2":" ",
"Address3":" ",
"Address4":" " ,
"Pincode":" ",
"Email":" ",
"Fax":" ",
"Phone1":" "
"Phone2":" ",
"Type":" "
}
]
}
The type of address is = " New, Regular, Old, Rare, Not_Respond". Can any body guide me how to design the JSON file with jquery? Also for each results, max ten address to be appeared on one page.
Upvotes: 2
Views: 75
Reputation: 25331
I think this is a question for Stackoverflow, but in the meantime I can point you to an intersting tutorial. It's pretty comprehensive.
We use jQuery’s getJSON function, which, by definition, loads “JSON-encoded data from the server using a GET HTTP request.”
Upvotes: 1