i have some json that i keep updated manually, but as the data is sent to me via e-mail, the more data the comes in the more time i'm spending writing json
is there a way to build a form that will take some data (text & uploads), and write/output JSON into a file or database? - i've tried researching with Ajax, PHP, MySQL and others with no luck, please advise (point me in the right direction)
My Structure:
{
"FirstName": "John",
"LastName": "Doe",
"Photo": "http://ImageURL",
"PhoneNumber": [
{
"MobilePhone": "555-555-5555",
"Provider": "Verizon"
},
{
"HomePhone": "555-555-5555",
"Provider": "AT&T"
},
{
"WorkPhone": "555-555-5555",
"Provider": "SBC"
}
]
}
Form needed
First name: (Text input)
Last Name: (Text input)
Photo: (File upload)
(Nested under "Phone Number")
Mobile Phone: (Text input)
Provider: (Text input)
Home Phone: (Text input)
Provider: (Text input)
Work Phone: (Text input)
Provider: (Text input)
note: this is dummy data, the actual JSON Dictionary is used for music albums and the address to the file is http://www.godsgypsychristianchurch.net/music.json