Load multiple concatenated JSON objects from stream

前端 未结 1 614
甜味超标
甜味超标 2020-12-02 02:16

I read a couple of similar questions but didn\'t find any one related to JObject. Here\'s the problem: I have a Stream with concatenated JSON objects, i.e:

{         


        
相关标签:
1条回答
  • 2020-12-02 02:55

    You can do that by setting SupportMultipleContent on JsonReader to true:

    Read Multiple Fragments With JsonReader

    If there is an issue with using JObject.Load with that setting then use JsonConvert.DeserializeObject instead.

    0 讨论(0)
提交回复
热议问题