initial support for JSON responses