diff --git a/builtin.c b/builtin.c index c3d6af19..f184ff7f 100644 --- a/builtin.c +++ b/builtin.c @@ -228,6 +228,12 @@ static void f_keys(jv input[], jv output[]) { } free(keys); jv_free(input[0]); + } else if (jv_get_kind(input[0]) == JV_KIND_ARRAY) { + int n = jv_array_length(input[0]); + output[0] = jv_array(); + for (int i=0; i