below my json :
  "temperature": {
    "level": 8,
    "format": function (value) {
                            return value + ' (C°)';
                            },
    "minimum": null,
    ...
    ...
    }
My goal is to write key format, I have try this but without much conviction...
package require rl_json
namespace import rl_json::json
set rj "{}"
set s1 {function (value) {
            return value + ' (C°)';
        }
        }
json set rj temperature [json object [list level {number 8} format [json template {{"~L:s1"}}] minimum {null}]]
Error parsing JSON value: Expecting : after object key at offset 8
 
    