The documentation states "This package adds a command json to the interpreter", but in order for the examples to work you need to first run namespace import ::rl_json::json, unless rl_json is built with the --enable-ensemble option. Suggest you add that line under package require rl_json ?0.17? or mention it elsewhere in the documentation.
There are also two examples that need to be corrected:
# $doc is {"foo":["elem 0","elem 1","elem 2","elem 3"]} should be
# $doc is {"foo":["elem: 0","elem: 1","elem: 2","elem: 3"]} and
# $doc is {"foo":["elem 3","elem 2","elem 1","elem 0"]} should be
# $doc is {"foo":["elem: 3","elem: 2","elem: 1","elem: 0"]}.
The documentation states "This package adds a command json to the interpreter", but in order for the examples to work you need to first run
namespace import ::rl_json::json, unless rl_json is built with the--enable-ensembleoption. Suggest you add that line underpackage require rl_json ?0.17?or mention it elsewhere in the documentation.There are also two examples that need to be corrected:
# $doc is {"foo":["elem 0","elem 1","elem 2","elem 3"]}should be# $doc is {"foo":["elem: 0","elem: 1","elem: 2","elem: 3"]}and# $doc is {"foo":["elem 3","elem 2","elem 1","elem 0"]}should be# $doc is {"foo":["elem: 3","elem: 2","elem: 1","elem: 0"]}.