| 281 | } |
| 282 | |
| 283 | void json_add_stringn(struct json_stream *result, const char *fieldname, |
| 284 | const char *value TAKES, size_t value_len) |
| 285 | { |
| 286 | json_add_str_fmt(result, fieldname, "%.*s", (int)value_len, value); |
| 287 | if (taken(value)) |
| 288 | tal_free(value); |
| 289 | } |
| 290 | |
| 291 | void json_add_bool(struct json_stream *result, const char *fieldname, bool value) |
| 292 | { |
no test coverage detected