Implement MapJsonFormat. Fixes issue of converting nested maps to json.