Skip to content

Commit 97aa525

Browse files
committed
Took care of JSON backslashes
Found out JSON library automatically adds backslashes to quotes. Used PHP to ditch them.
1 parent 5d0d499 commit 97aa525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/music/music.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
$tunes = array($json_data);
1010

11-
echo json_encode($tunes, JSON_UNESCAPED_SLASHES);
11+
echo str_replace('\\', '', json_encode($tunes, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK));
1212

1313
?>
1414

0 commit comments

Comments
 (0)