|Subject:||Support objToJson( $scalar )|
It seems arbitrary that one can't pass a scalar to objToJson(). This perl -MJSON -le 'print objToJson(1)' prints nothing - i.e. it silently fails to do the expected thing. There seems to be no architectural reason that objToJson / jsonToObj can't handle scalars. Coud the default behaviour be modified?