#!/bin/bash

# Copyright (C) 2016, 2017, 2018, 2019  Stefan Vargyas
# 
# This file is part of Json-Type.
# 
# Json-Type is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# Json-Type is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with Json-Type.  If not, see <http://www.gnu.org/licenses/>.

#
# File generated by a command like:
# $ json-gentest -C type-checker-list:list-plain-open-array-basic-val-array-basic-basic
#

[[ "$1" =~ ^-u[0-9]+$ ]] &&
u="${1:2}" ||
u=""

diff -u$u -L list-plain-open-array-basic-val-array-basic-basic.old <(echo \
'$ export JSON_TYPE_CHECK_ERROR_COMPLETE_TYPES=yes
$ json() { LD_LIBRARY_PATH=../lib ../src/json --terse --verbose --literal-value "$@"; }
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\''
[[{}],null]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\''
[[{}],false]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\''
[[{}],true]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\''
[[{}],123]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\''
[[{}],456]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\''
[[{}],"foo"]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\''
[[{}],"bar"]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\''
[[{}],{}]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\''
[[{}],[]]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\''
[null,null]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,false]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,true]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,123]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,456]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,"foo"]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,"bar"]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,{}]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,[]]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,null]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\''
[false,false]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\''
[false,true]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,123]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,456]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,"foo"]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,"bar"]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,{}]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,[]]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,null]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,false]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,true]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\''
[789,123]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\''
[789,456]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,"foo"]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,"bar"]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,{}]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,[]]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",null]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",false]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",true]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",123]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",456]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\''
["baz","foo"]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\''
["baz","bar"]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",{}]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",[]]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},null]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},false]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},true]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},123]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},456]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},"foo"]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},"bar"]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\''
[{},{}]
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},[]]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],null]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],false]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],true]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],123]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],456]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],"foo"]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],"bar"]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],{}]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\''
[[],[]]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\''
[[{}],null]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\''
[[{}],false]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\''
[[{}],true]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\''
[[{}],123]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\''
[[{}],456]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\''
[[{}],"foo"]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\''
[[{}],"bar"]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\''
[[{}],{}]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\''
[[{}],[]]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\''
[null,null]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,false]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,true]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,123]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,456]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,"foo"]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,"bar"]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,{}]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,[]]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,null]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\''
[false,false]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\''
[false,true]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,123]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,456]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,"foo"]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,"bar"]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,{}]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,[]]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,null]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,false]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,true]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\''
[789,123]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\''
[789,456]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,"foo"]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,"bar"]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,{}]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,[]]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",null]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",false]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",true]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",123]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",456]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\''
["baz","foo"]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\''
["baz","bar"]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",{}]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",[]]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},null]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},false]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},true]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},123]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},456]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},"foo"]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},"bar"]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\''
[{},{}]
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},[]]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],null]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],false]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],true]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],123]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],456]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],"foo"]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],"bar"]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],{}]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\''
[[],[]]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\''
[[{}],null]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\''
[[{}],false]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\''
[[{}],true]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\''
[[{}],123]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\''
[[{}],456]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\''
[[{}],"foo"]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\''
[[{}],"bar"]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\''
[[{}],{}]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\''
[[{}],[]]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\''
[null,null]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,false]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,true]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,123]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,456]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,"foo"]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,"bar"]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,{}]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,[]]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,null]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\''
[false,false]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\''
[false,true]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,123]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,456]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,"foo"]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,"bar"]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,{}]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,[]]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,null]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,false]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,true]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\''
[789,123]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\''
[789,456]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,"foo"]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,"bar"]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,{}]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,[]]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",null]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",false]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",true]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",123]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",456]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\''
["baz","foo"]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\''
["baz","bar"]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",{}]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",[]]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},null]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},false]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},true]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},123]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},456]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},"foo"]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},"bar"]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\''
[{},{}]
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},[]]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],null]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],false]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],true]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],123]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],456]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],"foo"]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],"bar"]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],{}]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\''
[[],[]]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\''
[[{}],null]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\''
[[{}],false]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\''
[[{}],true]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\''
[[{}],123]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\''
[[{}],456]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\''
[[{}],"foo"]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\''
[[{}],"bar"]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\''
[[{}],{}]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\''
[[{}],[]]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\''
[null,null]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,false]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,true]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,123]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,456]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,"foo"]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,"bar"]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,{}]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,[]]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,null]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\''
[false,false]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\''
[false,true]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,123]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,456]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,"foo"]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,"bar"]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,{}]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,[]]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,null]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,false]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,true]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\''
[789,123]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\''
[789,456]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,"foo"]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,"bar"]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,{}]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,[]]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",null]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",false]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",true]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",123]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",456]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\''
["baz","foo"]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\''
["baz","bar"]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",{}]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",[]]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},null]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},false]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},true]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},123]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},456]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},"foo"]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},"bar"]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\''
[{},{}]
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},[]]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],null]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],false]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],true]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],123]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],456]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],"foo"]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],"bar"]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],{}]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\''
[[],[]]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\''
[[{}],null]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\''
[[{}],false]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\''
[[{}],true]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\''
[[{}],123]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\''
[[{}],456]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\''
[[{}],"foo"]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\''
[[{}],"bar"]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\''
[[{}],{}]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\''
[[{}],[]]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\''
[null,null]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,false]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,true]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,123]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,456]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,"foo"]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,"bar"]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,{}]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\''
json: error: <stdin>:1:7: type check error: type mismatch: expected a value of type `"null"'\''
json: error: <stdin>:1:7: [null,[]]
json: error: <stdin>:1:7:       ^
[null,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,null]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\''
[false,false]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\''
[false,true]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,123]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,456]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,"foo"]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,"bar"]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,{}]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"boolean"'\''
json: error: <stdin>:1:8: [false,[]]
json: error: <stdin>:1:8:        ^
[false,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,null]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,false]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,true]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\''
[789,123]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\''
[789,456]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,"foo"]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,"bar"]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,{}]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\''
json: error: <stdin>:1:6: type check error: type mismatch: expected a value of type `"number"'\''
json: error: <stdin>:1:6: [789,[]]
json: error: <stdin>:1:6:      ^
[789,
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",null]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",false]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",true]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",123]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",456]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\''
["baz","foo"]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\''
["baz","bar"]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",{}]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\''
json: error: <stdin>:1:8: type check error: type mismatch: expected a value of type `"string"'\''
json: error: <stdin>:1:8: ["baz",[]]
json: error: <stdin>:1:8:        ^
["baz",
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},null]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},false]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},true]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},123]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},456]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},"foo"]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},"bar"]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\''
[{},{}]
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"object"'\''
json: error: <stdin>:1:5: [{},[]]
json: error: <stdin>:1:5:     ^
[{},
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],null]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],false]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],true]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],123]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],456]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],"foo"]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],"bar"]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\''
json: error: <stdin>:1:5: type check error: type mismatch: expected a value of type `"array"'\''
json: error: <stdin>:1:5: [[],{}]
json: error: <stdin>:1:5:     ^
[[],
command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\''
$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\''
[[],[]]'
) -L list-plain-open-array-basic-val-array-basic-basic.new <(
echo '$ export JSON_TYPE_CHECK_ERROR_COMPLETE_TYPES=yes'
export JSON_TYPE_CHECK_ERROR_COMPLETE_TYPES=yes 2>&1 ||
echo 'command failed: export JSON_TYPE_CHECK_ERROR_COMPLETE_TYPES=yes'

echo '$ json() { LD_LIBRARY_PATH=../lib ../src/json --terse --verbose --literal-value "$@"; }'
json() { LD_LIBRARY_PATH=../lib ../src/json --terse --verbose --literal-value "$@"; } 2>&1 ||
echo 'command failed: json() { LD_LIBRARY_PATH=../lib ../src/json --terse --verbose --literal-value "$@"; }'

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}' <<< '[[{}],null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}' <<< '[[{}],false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}' <<< '[[{}],true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}' <<< '[[{}],123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}' <<< '[[{}],456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}' <<< '[[{}],"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}' <<< '[[{}],"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}' <<< '[[{}],{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}' <<< '[[{}],[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}' <<< '[null,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}' <<< '[null,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}' <<< '[null,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}' <<< '[null,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}' <<< '[null,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}' <<< '[null,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}' <<< '[null,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}' <<< '[null,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}' <<< '[null,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}' <<< '[false,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}' <<< '[false,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}' <<< '[false,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}' <<< '[false,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}' <<< '[false,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}' <<< '[false,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}' <<< '[false,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}' <<< '[false,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}' <<< '[false,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}' <<< '[789,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}' <<< '[789,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}' <<< '[789,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}' <<< '[789,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}' <<< '[789,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}' <<< '[789,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}' <<< '[789,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}' <<< '[789,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}' <<< '[789,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}' <<< '["baz",null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}' <<< '["baz",false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}' <<< '["baz",true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}' <<< '["baz",123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}' <<< '["baz",456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}' <<< '["baz","foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}' <<< '["baz","bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}' <<< '["baz",{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}' <<< '["baz",[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}' <<< '[{},null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}' <<< '[{},false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}' <<< '[{},true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}' <<< '[{},123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}' <<< '[{},456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}' <<< '[{},"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}' <<< '[{},"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}' <<< '[{},{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}' <<< '[{},[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}' <<< '[[],null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}' <<< '[[],false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}' <<< '[[],true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}' <<< '[[],123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}' <<< '[[],456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}' <<< '[[],"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}' <<< '[[],"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}' <<< '[[],{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\'''
json -d '{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}' <<< '[[],[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":null},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}' <<< '[[{}],null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}' <<< '[[{}],false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}' <<< '[[{}],true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}' <<< '[[{}],123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}' <<< '[[{}],456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}' <<< '[[{}],"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}' <<< '[[{}],"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}' <<< '[[{}],{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}' <<< '[[{}],[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}' <<< '[null,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}' <<< '[null,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}' <<< '[null,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}' <<< '[null,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}' <<< '[null,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}' <<< '[null,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}' <<< '[null,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}' <<< '[null,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}' <<< '[null,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}' <<< '[false,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}' <<< '[false,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}' <<< '[false,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}' <<< '[false,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}' <<< '[false,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}' <<< '[false,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}' <<< '[false,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}' <<< '[false,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}' <<< '[false,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}' <<< '[789,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}' <<< '[789,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}' <<< '[789,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}' <<< '[789,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}' <<< '[789,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}' <<< '[789,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}' <<< '[789,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}' <<< '[789,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}' <<< '[789,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}' <<< '["baz",null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}' <<< '["baz",false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}' <<< '["baz",true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}' <<< '["baz",123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}' <<< '["baz",456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}' <<< '["baz","foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}' <<< '["baz","bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}' <<< '["baz",{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}' <<< '["baz",[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}' <<< '[{},null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}' <<< '[{},false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}' <<< '[{},true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}' <<< '[{},123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}' <<< '[{},456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}' <<< '[{},"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}' <<< '[{},"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}' <<< '[{},{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}' <<< '[{},[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}' <<< '[[],null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}' <<< '[[],false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}' <<< '[[],true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}' <<< '[[],123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}' <<< '[[],456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}' <<< '[[],"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}' <<< '[[],"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}' <<< '[[],{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\'''
json -d '{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}' <<< '[[],[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":false},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}' <<< '[[{}],null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}' <<< '[[{}],false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}' <<< '[[{}],true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}' <<< '[[{}],123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}' <<< '[[{}],456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}' <<< '[[{}],"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}' <<< '[[{}],"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}' <<< '[[{}],{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}' <<< '[[{}],[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}' <<< '[null,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}' <<< '[null,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}' <<< '[null,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}' <<< '[null,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}' <<< '[null,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}' <<< '[null,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}' <<< '[null,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}' <<< '[null,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}' <<< '[null,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}' <<< '[false,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}' <<< '[false,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}' <<< '[false,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}' <<< '[false,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}' <<< '[false,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}' <<< '[false,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}' <<< '[false,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}' <<< '[false,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}' <<< '[false,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}' <<< '[789,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}' <<< '[789,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}' <<< '[789,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}' <<< '[789,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}' <<< '[789,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}' <<< '[789,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}' <<< '[789,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}' <<< '[789,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}' <<< '[789,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}' <<< '["baz",null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}' <<< '["baz",false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}' <<< '["baz",true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}' <<< '["baz",123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}' <<< '["baz",456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}' <<< '["baz","foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}' <<< '["baz","bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}' <<< '["baz",{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}' <<< '["baz",[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}' <<< '[{},null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}' <<< '[{},false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}' <<< '[{},true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}' <<< '[{},123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}' <<< '[{},456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}' <<< '[{},"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}' <<< '[{},"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}' <<< '[{},{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}' <<< '[{},[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}' <<< '[[],null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}' <<< '[[],false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}' <<< '[[],true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}' <<< '[[],123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}' <<< '[[],456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}' <<< '[[],"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}' <<< '[[],"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}' <<< '[[],{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\'''
json -d '{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}' <<< '[[],[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":true},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}' <<< '[[{}],null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}' <<< '[[{}],false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}' <<< '[[{}],true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}' <<< '[[{}],123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}' <<< '[[{}],456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}' <<< '[[{}],"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}' <<< '[[{}],"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}' <<< '[[{}],{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}' <<< '[[{}],[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}' <<< '[null,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}' <<< '[null,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}' <<< '[null,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}' <<< '[null,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}' <<< '[null,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}' <<< '[null,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}' <<< '[null,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}' <<< '[null,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}' <<< '[null,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}' <<< '[false,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}' <<< '[false,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}' <<< '[false,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}' <<< '[false,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}' <<< '[false,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}' <<< '[false,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}' <<< '[false,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}' <<< '[false,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}' <<< '[false,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}' <<< '[789,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}' <<< '[789,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}' <<< '[789,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}' <<< '[789,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}' <<< '[789,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}' <<< '[789,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}' <<< '[789,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}' <<< '[789,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}' <<< '[789,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}' <<< '["baz",null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}' <<< '["baz",false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}' <<< '["baz",true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}' <<< '["baz",123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}' <<< '["baz",456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}' <<< '["baz","foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}' <<< '["baz","bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}' <<< '["baz",{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}' <<< '["baz",[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}' <<< '[{},null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}' <<< '[{},false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}' <<< '[{},true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}' <<< '[{},123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}' <<< '[{},456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}' <<< '[{},"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}' <<< '[{},"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}' <<< '[{},{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}' <<< '[{},[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}' <<< '[[],null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}' <<< '[[],false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}' <<< '[[],true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}' <<< '[[],123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}' <<< '[[],456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}' <<< '[[],"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}' <<< '[[],"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}' <<< '[[],{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\'''
json -d '{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}' <<< '[[],[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":123},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}' <<< '[[{}],null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}' <<< '[[{}],false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}' <<< '[[{}],true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}' <<< '[[{}],123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}' <<< '[[{}],456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}' <<< '[[{}],"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}' <<< '[[{}],"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}' <<< '[[{}],{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}' <<< '[[{}],[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"type"}]}'\'' <<< '\''[[{}],[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}' <<< '[null,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}' <<< '[null,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}' <<< '[null,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}' <<< '[null,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}' <<< '[null,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}' <<< '[null,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}' <<< '[null,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}' <<< '[null,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}' <<< '[null,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"null"}]}'\'' <<< '\''[null,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}' <<< '[false,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}' <<< '[false,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}' <<< '[false,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}' <<< '[false,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}' <<< '[false,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}' <<< '[false,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}' <<< '[false,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}' <<< '[false,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}' <<< '[false,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"boolean"}]}'\'' <<< '\''[false,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}' <<< '[789,null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}' <<< '[789,false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}' <<< '[789,true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}' <<< '[789,123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}' <<< '[789,456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}' <<< '[789,"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}' <<< '[789,"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}' <<< '[789,{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}' <<< '[789,[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"number"}]}'\'' <<< '\''[789,[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}' <<< '["baz",null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}' <<< '["baz",false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}' <<< '["baz",true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}' <<< '["baz",123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}' <<< '["baz",456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}' <<< '["baz","foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}' <<< '["baz","bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz","bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}' <<< '["baz",{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}' <<< '["baz",[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"string"}]}'\'' <<< '\''["baz",[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}' <<< '[{},null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}' <<< '[{},false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}' <<< '[{},true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}' <<< '[{},123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}' <<< '[{},456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}' <<< '[{},"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}' <<< '[{},"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}' <<< '[{},{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}' <<< '[{},[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"object"}]}'\'' <<< '\''[{},[]]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}' <<< '[[],null]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],null]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}' <<< '[[],false]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],false]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}' <<< '[[],true]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],true]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}' <<< '[[],123]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],123]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}' <<< '[[],456]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],456]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}' <<< '[[],"foo"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"foo"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}' <<< '[[],"bar"]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],"bar"]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}' <<< '[[],{}]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],{}]'\'''

echo '$ json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\'''
json -d '{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}' <<< '[[],[]]' 2>&1 ||
echo 'command failed: json -d '\''{"type":"list","args":[{"plain":"foo"},{"type":"array","args":"array"}]}'\'' <<< '\''[[],[]]'\'''
)

