How to serialize a JObject the same way as an object with Json.NET?

前端 未结 3 1859
一整个雨季
一整个雨季 2021-01-11 19:24

How do I control the serialization of a JObject to string?

I have some APIs that return a JObject and I usually apply some changes and persist or return them. I want

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-11 20:24

    When a JObject is serialized its raw JSON is written. JsonSerializerSettings do not effect its written JSON.

提交回复
热议问题