Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

-T json with -e options loses the tree structure and is only printing fields.

print.c:

    if (fields == NULL || fields->fields == NULL) {
        /* Write out all fields */
...
        data.node_children_grouper = node_children_grouper;

        write_json_proto_node_children(edt->tree, &data);
    } else {
        write_specified_fields(FORMAT_JSON, fields, edt, cinfo, NULL, dumper);
    }