Skip to content

[Bug] Cannot get a string value that represents an encoded JSON object #37

@tcarrio

Description

@tcarrio

I have validated this will multiple payloads, and the only one that won't fail is an empty object.

Input Success
{} Yes
{"a":"b"} No
{"name":"tcarrio"} No

The entirety of the string has the quotations escaped, and the local Roxy server returns the values as you would expect to see them for it to be resolved correctly as a string value.

Example response JSON from the /flags endpoint (showing only the flag in question):

{
    "flagName": "dev.openfeature.object_flag",
    "expression": "\"{\"name\":\"OpenFeature\",\"version\":\"1.0.0\"}\"",
    "lastModifiedDate": "2022-11-17T00:50:01.549Z"
}

This likely has something to do with the string processing post response. With the empty object example I do resolve the value and can json_decode into an array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions