I'm looking for a way that json parsing will take information as is (as if it was CDATA) - and not to try to serialize that. We use both .net and java (client and server) - so the answer should be about JSON structure Is there any way to achieve this structure?

谢谢

推荐答案

There is no XML CDATA equivalent in JSON. But you can encode your message in a string literal using something like base64. See this question for more details.

Json相关问答推荐

序列化从/到空值

基于 JSON 字段的 Jolt 条件标志

使用 jq 从带有转义反斜杠字符的嵌套 JSON 中提取数据

Moshi:序列化 List 时出现问题

使用 Power BI 中的 Deneb 视觉效果绘制面积图中的 X 轴日期

GitHub Pages无法正确显示我的项目

jq - 将父键值提取为子元素旁边的逗号分隔值

如何从 json 中获取单个元素?

如果值不存在,则将值插入 JSON 数组

Powershell中等效的JSONPath通配符以 Select 对象中的所有数组

JOLT 转换 - 删除 JSON 数组中的空 node

PowerShell - 如何迭代 PSCustomObject 嵌套对象?

使用 Javascript 判断 JSON 对象是否包含值

如何在 Go 中生成带有排序键的 JSON?

使用 @ResponseBody 自定义 HttpMessageConverter 来做 Json 事情

如何将 LinkedHashMap 转换为自定义 java 对象?

如何从 BindingResult 获取控制器中的错误文本

如何在 JAVA 中对 JSONArray 进行排序

使用 jQuery 和 JSON 填充表单?

通过url获取json数据并在python中使用(simplejson)