update travis/pecl
[m6w6/ext-json_post] / README.md
1 # PECL :: json_post [![Build Status](https://travis-ci.org/m6w6/ext-json_post.svg?branch=master)](https://travis-ci.org/m6w6/ext-sjon_post)
2
3 JSON POST handler
4
5 ## About
6
7 This tiny extension provides a PHP content type handler for JSON to PHP's
8 form data parser. If the `Content-Type` of an incoming request is `text/json`
9 or `application/json`, the JSON contents of the request body will by parsed
10 into `$_POST`.
11
12 This extension does not provide any constants, functions or classes.
13
14 ### INI Entries
15
16 * `json_post.flags = 1`
17 Takes any combination of JSON_ flags which will be passed to `json_decode()`.
18 The default is `JSON_OBJECT_AS_ARRAY`.