adding support for JSON, added example number to exampleformatexception