Skip to content

Commit fea2401

Browse files
author
Alistair Kearney
committed
Added JSON_UNESCAPED_SLASHES to avoid unnecessary escaping of slashes in output. (Closes #8)
1 parent 0053f2d commit fea2401

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Includes/JsonRendererLauncher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function renderer_json($mode){
5353
$outputArray = $transformer->run($outputArray);
5454

5555
// Now put the array through a json_encode
56-
$output = json_encode($outputArray, JSON_PRETTY_PRINT);
56+
$output = json_encode($outputArray, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
5757

5858
} catch(\Exception $e) {
5959
// This happened because the input was not valid XML. This could

0 commit comments

Comments
 (0)