Use to_json for fog_connection in erb