From 5c72938056611ccba2a36bc2332e21c69855ae96 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Wed, 4 Mar 2015 11:54:46 -0800 Subject: [PATCH] Initial commit --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c495e35 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# PECL :: json_post + +JSON POST handler + +## About + +This tiny extension provides a PHP content type handler for "text/json" to PHP's +form data parser. If the `Content-Type` of an incoming request is `text/json`, +the JSON contents of the request body will by parsed into `$_POST`. + +This extension does not provide any constants, functions or classes. + +### INI Entries + +* `json_post.flags = 1` + Takes any combination of JSON_ flags which will be passed to `json_decode()`. + The default is `JSON_OBJECT_AS_ARRAY`. -- 2.30.2