jshn.sh: add json_add_fields function for adding multiple fields at once
authorFelix Fietkau <nbd@nbd.name>
Tue, 27 Sep 2022 12:17:51 +0000 (14:17 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 27 Sep 2022 12:17:52 +0000 (14:17 +0200)
commitea56013409d5823001b47a9bba6f74055a6d76a5
tree7e47fe657d6ab889667a77f6c03ace62c4d2d077
parentd2223ef9da7172a84d1508733dc58840e1381e3c
jshn.sh: add json_add_fields function for adding multiple fields at once

This simplifies passing extra object data as a function parameter

Signed-off-by: Felix Fietkau <nbd@nbd.name>
sh/jshn.sh