From 831be040274e8aab5d45ecc4f5f5a87fd575ef95 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Thu, 13 Mar 2014 00:16:33 -0500 Subject: [PATCH] Also add `scalars` --- builtin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin.c b/builtin.c index da766e16..480fb8ae 100644 --- a/builtin.c +++ b/builtin.c @@ -691,6 +691,7 @@ static const char* const jq_builtins[] = { "def strings: select(type == \"string\");", "def nulls: select(type == \"null\");", "def values: arrays, objects, booleans, numbers, strings;", + "def scalars: select(. == null or . == true or . == false or type == \"number\" or type == \"string\");", }; #undef LIBM_DD