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.
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: