c# - Is there any way to determine data type to value of json dynamic object in json.net? -


i have json string deserialize dynamic json object. number values convert dynamic{long}!!! how can determine data type of number?

my code:

_jsonstr = "{unselectedtest_1:{testid:109},unselectedtest_2:{testid:163}}"; dynamic = jsonconvert.deserializeobject(_jsonstr); foreach (dynamic v in a) {            dr["testid"] = v.value.testid.value; } 

enter image description here enter image description here enter image description here


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -