Commit 79b7ef6b authored by Benito van der Zander's avatar Benito van der Zander

serialize json with line breaks

parent 3fa623fe
......@@ -2337,7 +2337,7 @@ procedure TExtraction.printExtractedValue(value: IXQValue; invariable: boolean);
end;
pvkObject, pvkArray: begin
if (outputFormat <> ofAdhoc) and not invariable then needRawWrapper;
result := escape(v.jsonSerialize(printedNodeFormat));
result := escape(v.jsonSerialize(printedNodeFormat, true));
end;
else if not printTypeAnnotations then begin
if (outputFormat <> ofAdhoc) and not invariable then needRawWrapper;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment