# JSON inclusion in core

- Thread: https://externals.io/message/21741
- Original archive: https://news-web.php.net/php.internals/21741
- Started by Paul on 2006-01-31T02:39:30+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #21741 — Paul — 2006-01-31T02:39:30+00:00

URL: https://externals.io/message/21741#21741

Здравствуйте, internals.

> "From: Rasmus Lerdorf
> To: internals@lists.php.net
> CC: omar@rmilk.com
> Subject: [PHP-DEV] JSON inclusion in core
> Date: Fri, 20 Jan 2006 11:31:58 -0800
> 
> pecl/json is a rather simple extension with no external deps (it
> bundles the small library it uses). The JSON format is stable with
> no real possibility of changing basically by definition, and I see
> its use exploding this year. There is also talk to a JSON Request
> object being added to browsers and if that happens we need to
> support that natively much like we support url-encoded form data
> ending up directly in $_POST. I could see a $_JSON if browsers
> start sending this. But, as an initial step how about we bundle
> pecl/json in the next release?

I think super-global array $_JSON is a bad idea, because it allows
only single instance. It is not $_GET or $_POST which are always
single per request.

Also, $_SESSION was bad idea too, when we need 2 separated sessions
(for example with different cookie params) - we cant use PHP
integrated session solution.

So please, do not repeat old mistakes.

--
Regards,  Paul                          mailto:gugglegum@gmail.com
