Hello experts,
I have using Convert Excel to JSON Using VBA | Excelerator Solutions as a reference.
I have jsonstring = JsonConverter.ConvertToJson(jsonItems)
where jsonitems is a collection
the jsonstring is an array as it starts with a [ and finish with a ].
I need to remove the [ and ] at the start and end of the string. I can do that by using the MID function but manipulating a string is not good coding practice. How can i remove the [ and ] without changing the string? I read i need to parse it but not sure how. any help?
Thanks,
I have using Convert Excel to JSON Using VBA | Excelerator Solutions as a reference.
I have jsonstring = JsonConverter.ConvertToJson(jsonItems)
where jsonitems is a collection
the jsonstring is an array as it starts with a [ and finish with a ].
I need to remove the [ and ] at the start and end of the string. I can do that by using the MID function but manipulating a string is not good coding practice. How can i remove the [ and ] without changing the string? I read i need to parse it but not sure how. any help?
Thanks,