json_post
[mdref/mdref-json_post] / json_post.md
1 # pecl/json_post
2
3 ## About:
4
5 JSON POST handler.
6
7 Parse JSON request bodies into `$_POST`.
8
9 ## What it does:
10
11 This tiny extension provides a PHP content type handler for `text/json` to PHP's form data parser.
12
13 If the `Content-Type` of an incoming request is `text/json`, the JSON contents of the request body will by parsed into `$_POST`.
14
15 ## Installation:
16
17 This extension is hosted at [PECL](http://pecl.php.net) and can be installed with [PEAR](http://pear.php.net)'s pecl command:
18
19 # pecl install json_post
20
21 ## Dependencies:
22
23 * ext/json
24
25 ## INI Directives:
26
27 * json_post.flags = 1; json_decode() flags
28 * JSON_OBJECT_AS_ARRAY = 1
29 * JSON_BIGINT_AS_STRING = 2
30 * JSON_OBJECT_AS_ARRAY|JSON_BIGINT_AS_STRING = 3
31