Move json encoding stuff
Add missing bits to php_json.h