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.
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. On Tue, Dec 1, 2020 at 5:22 AM Massimo Manghi <massimo.man...@unipr.it> wrote: > I've been extensively using FA's yajltcl package lately to compose JSON > messages to be consumed and interpreted by a browser internal parser > > I also ran into the need of parsing JSON messages myself and from what I > understood yajltcl converts JSON back to the original yajltcl sequence > that created it but offers no way to organize the data into some Tcl > native container, is it correct? A parser that converts the yajltcl > representation of the JSON data in some Tcl native representation is > something needed to yajltcl? > > -- Massimo > >