I have a jsonObject that looks like
{"Types":[{"Mtype":"text/plain","time":"Thus:24:32:02"},{"MtypeSec":"text/plain","time":"Thus:24:32:02"}]}
I wanted to know how I can extract Mtype and time ? is the Types a jsonArray ??
I have a jsonObject that looks like
{"Types":[{"Mtype":"text/plain","time":"Thus:24:32:02"},{"MtypeSec":"text/plain","time":"Thus:24:32:02"}]}
I wanted to know how I can extract Mtype and time ? is the Types a jsonArray ??
Copyright © 2021 Jogjafile Inc.
Looks like
Typesis an array, but arrays are a subclass ofObjectso that is whyIsObject()returns true. You should callIsArray()on it to see if it is an array.The correct syntax would be
document["Types"][0]["Mtype"].GetString(), or you can iterate over it with the following: