Consider to add convertion from "set" to json-like format i.e reverse operation to the current function