在vfp中使用JSON,by木瓜
*解析测试
obj=CreateObject("foxJson")
obj.Parse('{"name":"lee","age":32, "childs":[{"name":"xiao ming","age":2},{"name":"baobao","age":5}]}')
?obj.item("name").value
?obj.item("age").value
?obj.item("childs").count
?obj.item("childs").item(1).item("name").value
?obj.item("childs").item(1).item("age").value
?obj.item("childs").item(2).item("name").value
?obj.item("childs").item(2).item("age").value
1