Use JSON as exception format

This allows us to provide more structured error information.