【发布时间】:2021-05-15 21:08:56
【问题描述】:
我正在从第三方获取 JSON 作为 POST 请求,我目前在 Spring Boot 中映射到我的对象。当任何属性具有换行符时,此调用将失败,因为它没有被转义。我该如何接受这个 JSON。 示例:
{
"name":"xyz",
"age":32,
"comment": "Hello, this is
an example comment of how I am getting the JSON"
}
【问题讨论】:
标签: java json spring-boot rest post