How Do I Configure Json.NET Custom Serialization?

后端 未结 3 644
有刺的猬
有刺的猬 2021-01-21 04:47

For reasons beyond my control, I have data coming back from an external service being formatted as an array of array of string: [[\"string_one\", \"string_two\"]]

3条回答
  •  我在风中等你
    2021-01-21 05:37

    Honestly, I'd just deserialize it as string[][] and map that within your domain layer. The amount of time you'll spend messing around with custom serialization is rarely worth it.

提交回复
热议问题