accesing web service in VB6 with json

by rz get   Last Updated September 11, 2019 19:26 PM - source

I'm calling a web service in VB6 which returns a json string as response. I'm able to hold the response in a string. now I want to show the each parameter separately how can I extract the values from the string ?. a sample string is here :"aaa": {"bbb": 900,"ccc": "oke"},"result": {"count": 3,"data": [["x1, x2","x3"],["y1, y2","y3"],["z1, z2","z3"]]}}

Tags : json vb6


Answers 1


You have 2 options 1. Write your own Json parser in VB6 2. Create a COM wrapper for Json.Net and use it in your code.

The first one is going to be quite complex, but your code will not have any runtime dependeny

The second approach is fairly easier but will require the .Net Framework to be installed in the machines where your VB6 code is running.

Shameel
Shameel
September 11, 2019 19:25 PM

Related Questions



XML to Json conversion with HTML string data

Updated November 04, 2018 16:26 PM

Running json-server along with create-react-app

Updated November 05, 2017 13:26 PM