Hello,

I have an external webform sending data as a JSON to my web2py app. 

{"product_package":"basic_m","products":"31349","billing_name":"Kenneth","billing_surname":"Lundstr\u00f6m","e_mail":"kenneth.lundst...@tester.com","billing_organization":"Testing","billing_job_description":"Tester","billing_address":"a:7:{s:12:\"thoroughfare\";s:18:\"Teststreet
 
5\";s:7:\"premise\";s:0:\"\";s:11:\"postal_code\";s:5:\"000012\";s:18:\"dependent_locality\";s:0:\"\";s:8:\"locality\";s:5:\"Test
 
city\";s:19:\"administrative_area\";s:0:\"\";s:7:\"country\";s:2:\"NO\";}","company_business_id":"123456789","billing_phone":"123456789","billing_mobile":"","delivery_checkbox":"","delivery_name":"","delivery_surname":"","delivery_organization":"","delivery_address":"N;","terms__conditions":"agree"}

If I use json.loads I can access all the different data without any 
problem, except the billing_address fields. 
"billing_address":"a:7:{s:12:\"thoroughfare\";s:18:\"Teststreet 
5\";s:7:\"premise\";s:0:\"\";s:11:\"postal_code\";s:5:\"000012\";s:18:\"dependent_locality\";s:0:\"\";s:8:\"locality\";s:5:\"Test
 
city\";s:19:\"administrative_area\";s:0:\"\";s:7:\"country\";s:2:\"NO\";}"

How would you split this into useable parts. I'd like to get my hands on 
the different fields inside billing_address. 


Kenneth

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to