我有一部分XML配置文件被另一个java应用程序读取。这个值被传递用于过滤,groovy通过管道将其放入文件中。问题是当groovy试图解析双引号中的星号时,我找不到方法来转义它。
我尝试了"*\”以及许多使用单引号和双引号的变体,并将其表示为var,然后将其作为值引入,但没有效果","reason":"Malformed request body","details":[{"field":null,"messages":["JSON parse error: Unexpected character ('' (code 42)): was expecting comma to separate Object entries; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected character ('*' (code 42))
〈〈执行后我们看到的:〉〉〉〉〉
请更正并重新发布。","reason":"Malformed request body","details":[{"field":null,"messages":["JSON parse error: Unexpected character ('' (code 42)): was expecting comma to separate Object entries; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected character ('*' (code 42))
个
1条答案
按热度按时间qyuhtwio1#
您可以尝试以下操作吗?