FoodLogiQ/foodlogiq-node — pull request #8 by ventres (2014-03-07 18:09:55+00:00)
Title: Try/Catch JSON formatting of response

Added a try/catch statement to the parsing of the server response in foodlogiq-client. If the response is not JSON formatted, the client throws an uncatchable error. With this code, the error is much more likely to be properly passed on to the next function.