Closed LZ59 closed 1 year ago
问题:服务端响应的json数据中包含转义后的字符串时转义的反斜杠会被去掉 例如原始返回为
{"code":{"code":"0000","msgId":"RetCode.Success","msg":"操作成功"},"bo":{"s1":"111","s2":"{\"s1\":\"111\",\"s2\":{\"222\":\"222\"},\"s3\":\"333\"}","s3":"333"},"other":null}
插件展示的响应为
{"code":{"code":"0000","msgId":"RetCode.Success","msg":"操作成功"},"bo":{"s1":"111","s2":"{"s1":"111","s2":{"222":"222"},"s3":"333"}","s3":"333"},"other":null}
建议:1.既然body和response都支持压缩json的功能,希望也可以同时提供美化json的功能; 2.关于超时时间和取消请求,希望可以提供无限制等待的选择,同时提供一个取消请求的按钮
反斜杠确实,后面优化下。 建议1:默认会对response合理的json字符串美化,body和response本身就支持idea自带的格式化,路径:菜单Code->Reformat Code 建议2:无限制等待可以理解为很长的超时时间,在插件中设置超时时间就行了;取消按钮也是有的,只是效果有限,建议通过超时控制。
好好摸索一下
了解了,感谢大佬的回复
问题:服务端响应的json数据中包含转义后的字符串时转义的反斜杠会被去掉 例如原始返回为
插件展示的响应为
建议:1.既然body和response都支持压缩json的功能,希望也可以同时提供美化json的功能; 2.关于超时时间和取消请求,希望可以提供无限制等待的选择,同时提供一个取消请求的按钮