JSON and POST support added