json2dict is mentioned in the quick reference section of the README.md file in the repo: https://github.com/flightaware/yajl-tcl
There's no particular technical reason why you can't parse/manipulate the command format sequence, but it's just not as convenient to do because of the nature of the data. However, if your needs are simple, you can use the list functions like lsearch, linsert, lreplace, lrange to directly modify that command format too. On Wed, Dec 2, 2020 at 2:14 AM Massimo Manghi <[email protected]> wrote: > On 12/1/20 10:29 PM, Jeff L wrote: > > yajltcl offers the ::yajl::json2dict for conversion of JSON messages > > into a Tcl native container (which can be used as a dict or array). This > > is the easiest way to read specific values from within a larger JSON > > document since you can use normal dict/array operations to navigate the > > data structure layout. > > > > thank you. I based my knowledge on the documentation available from > https://flightaware.github.io/yajl-tcl/ where I found the 'parse' > command but not json2dict > > > The yajltcl command format (array_open/array_close/etc) is not really > > intended to be consumed or manipulated by anything else directly, though > > it's possible if your needs are simple enough. > > > > > > why not? Provided such sequences are a complete mapping of a JSON > message DOM you should be able to build the actual inverse map. > > -- M >
