ASP parsing complex JSON must pay attention to the key points _ Application skills

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.