flightaware/yajl-tcl — Issue #4: yajl "number" type does not reject blank arguments
Author: bovine
Created: 2011-11-02 00:51:50+00:00
State: open

If the "number" type is used to generate JSON, then yajl-tcl does not detect and reject a blank argument, making it possible to emit invalid JSON code.

#!/usr/local/bin/tclsh8.5
package require yajltcl
set x [yajl create #auto]
$x array_open
$x string type number 12 number 34 number "" number 56
$x array_close
puts [$x get]