toJSON #

Converts a KuzzleError object to a plain-old JSON object.

toJSON(): JSONObject