First Step: Write a PHP program that will generate the JSON structure below.
Second Step: Write a JAVASCRIPT program that will parse the JSON structure once the PHP program is
called using AJAX. You may show your output on the body of the HTML document or in the console.
Problem #1. Billing Information
{
"client-data ":
{
"account-num":123456789012,
"balance":100,
"billing-info":
{
"first-name":"Matthew",
"last-name":"Cousens",
"addr-street":"2455 South Rd",
"addr-city":"Poughkeepsie",
"addr-region":"New York",
"addr-code":"12601"
}
}
}
Second Step: Write a JAVASCRIPT program that will parse the JSON structure once the PHP program is
called using AJAX. You may show your output on the body of the HTML document or in the console.
Problem #1. Billing Information
{
"client-data ":
{
"account-num":123456789012,
"balance":100,
"billing-info":
{
"first-name":"Matthew",
"last-name":"Cousens",
"addr-street":"2455 South Rd",
"addr-city":"Poughkeepsie",
"addr-region":"New York",
"addr-code":"12601"
}
}
}