API update: Graceful handling of malformed data

Hi there,

Today we made a change to the API so it deals more gracefully with
malformed data sent to it. Instead of a HTTP 500 Internal Server Error you
will now receive a 400 Bad Request along with the following JSON/XML,
depending on the type of data you are posting:

{“error”:“Invalid JSON”}

<?xml version="1.0" encoding="UTF-8"?>

Invalid XML

In this case you can use a JSON/XML validator like JSONLinthttp://jsonlint.com/or W3C’s
XML validator http://www.w3.org/2001/03/webdata/xsv to check your syntax
for errors.

Best regards,