我们有一个表格,其中包含一个scienctific应用程序的长段落,其中包含符号beta(ß-arrestin)等字符.我们在Mule上运行一个JSON服务,它接收数据并持久存储到oracle数据库.这个带有长段的特殊元素在RAML/JSON中给出了一个错误.以下是错误
com.fasterxml.jackson.core.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 9)): has to be escaped using backslash to be included in string value
Run Code Online (Sandbox Code Playgroud)
科学家写的形式元素我们无法控制.所以在Mule方面,我们如何自动地逃避这些字符,就像java具有URLEncoded一样.非常感谢
我正在使用 Mule EE 3.5.2 并迁移到 3.6.2。我有一个带有 json 模式的 RAML 项目,该项目抛出错误 mule invalid JSON schema error: value has wrong type (found boolean, expected one of [array])。在进一步挖掘时,我发现 required 属性是有问题的属性,如此处所解释的https://github.com/mulesoft/raml-for-jax-rs/issues/81。但即使进行了必要的更改后,我仍然遇到相同的错误。我再次使用 Mule EE 3.6.2。下面是 json 模式。任何帮助将不胜感激。
问候, 哈里
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://example.com",
"type": "object",
"properties": {
"record": {
"id": "http://example.com/record",
"type": "array",
"items": {
"id": "http://example.com/record/0",
"type": "object",
"properties": {
"Account": {
"id": "http://example.com/record/0/Account",
"type": "string"
},
"DeptID": {
"id": "http://example.com/record/0/DeptID",
"type": "string"
},
"ProjectID": {
"id": "http://example.com/record/0/ProjectID",
"type": "string"
}, …Run Code Online (Sandbox Code Playgroud) 我正在寻找如何为对象内的对象集合编写JSON模式.
{
"name": "Sadiq",
"age": 68,
"email": [
{
"emailid": "sadiq@gmail.com"
},
{
"emailid": "sadiq@yahoo.com"
}
],
"phone": [
{
"phonenumber": "301-215-8006"
},
{
"phonenumber": "301-215-8007"
}
]
}
Run Code Online (Sandbox Code Playgroud)