Start adding support for JSON requests