You can use this bellow code to remove quote from numeric value.
http://php.net/manual/en/json.constants.php
It will work >=PHP 5.3.
$encoded = json_encode($data, JSON_NUMERIC_CHECK);
More Related Contents:
- json parse error with double quotes
- How to create this type of JSON data from PHP [closed]
- How to extract and access data from JSON with PHP?
- How to convert JSON string to array
- Replace URLs in text with HTML links
- Replacing accented characters php
- json_encode PHP array as JSON array not JSON object
- Facebook Graph API, how to get users email?
- php: loop through json array
- Merging two json in PHP
- json_encode function: special characters
- PHP remove special character from string
- How to process JSON in PHP?
- PHP Create a Multidimensional Array from an array with relational data [duplicate]
- Regular expressions for a range of unicode points PHP
- Retrieve JSON POST data in CodeIgniter
- How to add square braces around subarray data inside of a json encoded string?
- 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
- regular expression and forward slash
- How to remove backslash on json_encode() function?
- json_encode not working with a html string as value
- How do I loop through JSON array
- How to iterate through a nested stdClass? [duplicate]
- PHP: Most frequent value in array
- Json: PHP to JavaScript safe or not?
- Why are escape characters being added to the value of the hidden input
- Read JSON Data Using PHP [duplicate]