PARSE JSON with excel

Cyclone

New Member
Joined
May 17, 2013
Messages
1
Hey,

I have successfully parsed a few strings by following the very helpfuls posts in this forum. These one are all working well. My data looks a bit different than in the threads here so I would like some input from you if possible.

I have imported the "JSON.bas", "cJSONScript.cls" and "cStringBuilder.cls" to my project.

I have also added references to the "Microsoft Scripting Runtime" library and to the "Microsoft ActiveX Data Objects 2.8 Library" library so thats all well. My JSON objects looks as follows and this is where I get stuck. I'm not going to do anything fancy but structuring the data into rows and columns.

First issue I have;

{
"Parts":{
"15":{
"pid":"229",
"dnum":"20"
},
"53":{
"pid":"365",
"dnum":"19"
},
"57":{
"pid":"396",
"dnum":"266"
},
"63":{
"pid":"64",
"dnum":"34"
},
"16":{
"pid":"839",
"dnum":"96"
}
}
}

Then the second. It looks as follows;

{
"organization":[
{
"position":1,
"Orgname":"acg prag",
"Orgtype":"706",
"cre_date":"Thu, 12 May 2013 07:21:10 +0000",
"Length":"256",
"subs":[
"51",
"84",
"4"
],
"assy":[
"246",
"13"
],
"Load":{
"cre_date2":"Thu, 16 May 2013 12:10:34 +0000",
"comp_date":"Fri, 17 May 2013 21:42:21 +0000",
"noww":"Fri, 17 May 2013 14:41:57 +0000"
}
},
]
}

Any help would be very much appreciated.
 
Last edited:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
It is not clear what you want to achieve. Please also show a part of the output required
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,254
Members
448,556
Latest member
peterhess2002

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top