Boolean values: Difference between revisions
Content deleted Content added
mv jq |
mv jq |
||
Line 559: | Line 559: | ||
(source: [http://www.ecma-international.org/publications/standards/Ecma-262.htm ECMAScript Language Reference]) |
(source: [http://www.ecma-international.org/publications/standards/Ecma-262.htm ECMAScript Language Reference]) |
||
=={{header|jq}}== |
|||
<tt>true</tt> and <tt>false</tt> are the only entities of type "boolean": |
|||
<tt> |
|||
$ jq type |
|||
true |
|||
"boolean" |
|||
false |
|||
"boolean" |
|||
</tt> |
|||
The above shows the jq command invocation, followed by alternating lines of input and output. |
|||
jq's logical operators, however, do not require boolean inputs. In brief, <tt>false</tt> and <tt>null</tt> are both regarded as false, and all other JSON entities are regarded as <tt>true</tt>. |
|||
=={{header|Julia}}== |
=={{header|Julia}}== |