What causes json_encode() to replace periods with underscores? I can’t have it doing this in my script as it then breaks my curl calls that use the URL array.
What causes json_encode() to replace periods with underscores? I can’t have it doing this
Share
When PHP receives POST/GET variables (which I assume this is about, because
json_encodewont’t do it), replaces dots in keys with an underscore (aregister_globalslegacy I think).Either work around it, or manually parse either
$_SERVER['QUERY_STRING']forGET‘s orfile_get_contents('php://input');forPOST.