Closed xiao-peng-yu closed 7 months ago
[
{
"request" :
{
"uri":"/test",
"method":"post"
},
"response" :
{
"text" : "<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
There are many "
in your XML String which is illegal in JSON.
You can use XML file
for your response.
use python lib json to fix it , copy the result to json file
import json
xml_in_json = json.dumps(xml_body)
print(xml_in_json)