我正在尝试转换json字符串" 1,2"到["1","2"]
,但我得到了这个" [1,2]":
Dim json = {"types": "1,2"}
oAction.ExtraData = Newtonsoft.Json.JsonConvert.SerializeObject(json)
Dim extraData As JObject
extraData = JObject.Parse(oAction.ExtraData)
extraData("types") = "[" + extraData("types").ToString + "]"
oAction.ExtraData = Newtonsoft.Json.JsonConvert.SerializeObject(types)