Added map-method for transforming a JSON-object in-place