Just use the “JSON_UNESCAPED_SLASHES” Option (added after version 5.4).
json_encode($array,JSON_UNESCAPED_SLASHES);
More Related Contents:
- How to create this type of JSON data from PHP [closed]
- How to get the first key of many duplicated json key? [duplicate]
- How to extract and access data from JSON with PHP?
- How to convert JSON string to array
- json_encode PHP array as JSON array not JSON object
- Facebook Graph API, how to get users email?
- php: loop through json array
- The holy grail of cleaning input and output in php?
- php json_encode not working on arrays partially
- Any way to return PHP `json_encode` with encode UTF-8 and not Unicode? [duplicate]
- php get values from json encode
- Why is this PHP call to json_encode silently failing – inability to handle single quotes?
- json_decode returns JSON_ERROR_SYNTAX but online formatter says the JSON is OK
- Convert invalid json into valid json
- Best way to create an empty object in JSON with PHP?
- How to update/edit a JSON file using PHP [closed]
- PHP’s json_encode does not escape all JSON control characters
- POST request with JSON body
- ‘Malformed UTF-8 characters, possibly incorrectly encoded’ in Laravel
- Handling big user IDs returned by FQL in PHP
- org.json.JSONException: Value
- Parse JSON string contents into PHP Array
- Invalid JSON parsing using PHP
- PHP convert XML to JSON group when there is one child
- How to build a JSON array from mysql database
- Handling data in a PHP JSON Object
- Get value from JSON array in PHP
- json parse error with double quotes
- how to fetch all the row of the result in php mysql?
- The ultimate emoji encoding scheme