desmondmorris/node-twitter — pull request #28 by Pezmc (2014-05-25 09:06:12+00:00)
Title: Explicitly catch SyntaxError from JSON.Parse

If it's a syntax error, add the bad json to the message.
This means in cases when twitter returns a string (e.g. "you can't do that, try again later") error.json is populated and so the error can be accessed.