I need to force json_encode NOT to put any quotes around certain values.
Example:
Code: Select all
$ar = array(
'data' => '$(this).val()'
);
Code: Select all
{"data":"$(this).val()"}
Is it possible to tell json_encode not to enclose some values with quotes?
Like when it doesn't do that for integers.
Thank you!