SyntaxFix
Write A Post
Hire A Developer
Questions
Simpler way would be
$mystring = json_encode($my_json,JSON_UNESCAPED_SLASHES);