12 years ago
Exporting json to a file with a datasink step
I've been exporting json responses to files using ${MyTestStep#Response} as the value in the datasink step. The file is created but all the quotes in the json have doubled up, so:
{"version":"x.y.z","uri":"/yourURIhere","status":"Success","messages":[]}
becomes
{""version"":""x.y.z"",""uri"":""/yourURIhere"",""status"":""Success"",""messages"":[]}
which is no longer valid json. The data displayed in the datalog window within the datasink step does not have these multiple quotes. Have I missed an checkbox somewhere? I've unticked the "Quote Values" box in the datasink step but it has had no effect. I'm using Pro v5.1.0.
Thanks.
{"version":"x.y.z","uri":"/yourURIhere","status":"Success","messages":[]}
becomes
{""version"":""x.y.z"",""uri"":""/yourURIhere"",""status"":""Success"",""messages"":[]}
which is no longer valid json. The data displayed in the datalog window within the datasink step does not have these multiple quotes. Have I missed an checkbox somewhere? I've unticked the "Quote Values" box in the datasink step but it has had no effect. I'm using Pro v5.1.0.
Thanks.