use flask's built-in jsonify for responses
add example output to readme