Fixed error with config

Config was previously looking for a field 'format' which should default to 'json'. Added an isset check, defaulting to json.