neat-php / http-server

Neat HTTP Server components
MIT License
0 stars 0 forks source link

JSON input support #6

Open annavanbiemen opened 4 years ago

annavanbiemen commented 4 years ago

It would be great if we could ask the Input class to load json fields just as we would do with post fields.

Currently the Neat HTTP components have no support for reading received JSON requests:

<?php
$json = json_decode($request->body());