def drop.empty
import cswap-bend-cli@0.1.0.0/profile.bend as Profileimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
291def drop.empty(+ps: Json.Json, +raw: Json.Json) -> Json.Json:
292 match ps:
293 case Json.JObj{Json.JNil{}}:
294 Json.del("profiles", raw)
295 case o:
296 Json.set("profiles", ps, raw)