I have to json_encode a PHP array to a JavaScript array. Unfortunately the jQuery library I am using will not properly process that array if it contains ints instead of stri
json_decode() can convert large integers to strings, if you specify a flag in the function call:
json_decode()
$array = json_decode($json, true, 512, JSON_BIGINT_AS_STRING)