Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-14350

Allow the wt_to_mdb_bson python script to output valid JSON

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT12.0.0, 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: Tools
    • None
    • Storage Engines
    • S8 Team 2025-04-14

      When using the wt_to_mdb_bson python script the expectation is that this will be read by a human being on the other end since the tool only outputs a human-readable version of the BSON.

      Processing the output with other tools is somewhat difficult since it involves either reimplementing the same logic or making some ugly hacks to get the required data out.

      If instead the script where to support outputting things as valid JSON this would be much easier to do as we can then use standard tools to process the output like jq.

      I've attached a patch that modifies the script to output valid JSON by specifying the result to be

      {"key": <row key>, "value": <row value>}

      with a flag.

            Assignee:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: