This is the first article I wrote, in fact, there are many similar articles on the Internet, I just began to follow the online article to do the experiment.
But his article in the JSON is quite simple, I follow his method only to parse out the first layer, the rest of life and death tried most of the genius test out, here or the JSON format is not too familiar with the data is not familiar with the ASP. Here's my code, explain it, and leave a backup of what I do.
My JSON data is obtained from the HTTP interface:
Copy Code code as follows:
{"Data": {"0": {"ProductInfo": {"id": "8", "project_id": "{"}}, "info": "22222", "Mac_status": 1}, "code": "Message" : "OK"}
I refer to the site's code can only be prompted to parse to the first layer, about the beginning of the next no direction, a random try, did not get out, finally understand the key to the JSON, directly on the code after the hope that others also mention a wake up.
I don't cut the front code, just post the most important one.
Dim objtest
Call Initscriptcontrol
Set objtest = getjsonobject (status)
Dim ProductInfo
Getjsarrayitem ProductInfo, Objtest.data, 0
The data in the previous item is not known how to get it.
Now know, hope can help others.