Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State variables do not escape JSON keys correctly #158

Open
johnaohara opened this issue Oct 12, 2022 · 0 comments
Open

State variables do not escape JSON keys correctly #158

johnaohara opened this issue Oct 12, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@johnaohara
Copy link
Member

Given a state;

RUN.output.1.test "some test"

The resulting JSON representation will be;

{ "RUN":
  { "output":
    { 1:
        { "test": "some test" }
    }
  }
}

Valid JSON should have keys escaped as strings, the key 1 should be escaped as a "1", i.e.

{ "RUN":
  { "output":
    { "1":
        { "test": "some test" }
    }
  }
}

Once Hyperfoil/yaup#33 is fixed, the version of yaup needs bumping

@johnaohara johnaohara added the bug Something isn't working label Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant