开发者

How to deserialize JSON string

I have found lots of online tutorials but all of them are deserializin开发者_如何学Gog JSON strings into objects or lists of objects.

I just have a web service which returns either 1 or 0 as JSON.

So it prints something like:

""\"0\""

Or:

""\"1\""

How can I deserialize a simple JSON like that into a string?


According to the RFC4627 a valid JSON string is defined as either a JSON object or a JSON array. Your web service should return something similar to this.

{ "Result": 0 }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜