temporary changes for JSON api
Added JSON list views TODO: pagination
Added error reporting in config