Skip to content

Handle case where new keys are added to JSON objects (--format json) #13

Description

@simonw

Right now if the first JSON object is missing keys that are present in the second JSON object the script crashes.

Activity

  1. added
    enhancementNew feature or request
    bugSomething isn't working
    and removed
    enhancementNew feature or request
    on Feb 23, 2021
  2. simonw commented on Feb 23, 2021

    @simonw
    OwnerAuthor

    I'm going to fix this by having the load_json() function normalize the JSON it loads it so any missing keys from any of the objects become keys against null.

  3. simonw commented on Feb 23, 2021

    @simonw
    OwnerAuthor

    I'll close this issue once I've seen my production deployment of this fix work correctly for a while.

  4. added a commit that references this issue on Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions