Added a test for handling JSON data requests.
Updated documentation.