| 1739 | } |
| 1740 | |
| 1741 | bool string_array_jsonfmt(struct command *cmd, struct json_stream *js, |
| 1742 | const char *fieldname, const char ***arr) |
| 1743 | { |
| 1744 | if (tal_count(*arr) == 0) |
| 1745 | return false; |
| 1746 | json_array_start(js, fieldname); |
| 1747 | for (size_t i = 0; i < tal_count(*arr); i++) |
| 1748 | json_add_string(js, NULL, (*arr)[i]); |
| 1749 | json_array_end(js); |
| 1750 | return true; |
| 1751 | } |
| 1752 | |
| 1753 | bool flag_jsonfmt(struct command *cmd, struct json_stream *js, const char *fieldname, bool *i) |
| 1754 | { |
nothing calls this directly
no test coverage detected