Illustrates conversion using JSON. Builds on previous version to show how the server converts JSON object to native PHP object, courtesy of the JSON-PHP library. The PHP version is shown using the results of the PHP dump_var() function.

 
Name:
Converted to JSON using JSON.stringify(val)
---
Converted to PHP object on server-side
---
 
age:
Converted to JSON using JSON.stringify(parseInt(val))
---
Converted to PHP object on server-side
---
 
House Number:
Street:
City:
Zipcode/Postcode:
Country:
Comment 1:
Comment 2:
Comment 3:
Converted to JSON using JSON.stringify(parseAddressForm(val))
---
Converted to PHP object on server-side
---