Home > Article > Web Front-end > ASP Json Parser revised version_json
But when I used it later, I found a problem. If json was relatively simple, there would be no problem. If json contained an array, vbs could not directly reference the array elements in js, so the array elements in the json object could not be accessed. I have tried many methods, including pop, etc., but nothing works. Further searches on the Internet yielded no results.
I was depressed for a long time, so I searched for "vbscript how to access javascript array" and found an article by a foreigner. After debugging, I found that the foreigner's method is good. The reason why it cannot be accessed is that the corresponding get method is not defined. Instead, I added his get indexer, tried it, and it was ok.
The code is as follows:
asp json parser
Code