Skip to content

Weird parsing of unicode characters #59

@theofidry

Description

@theofidry

Given the following JSON:

{
  "errors": [
    {
      "message": "Argument \u0022input\u0022 has an invalid value: ...."
    }
  ]
}

(for some reason a mink driver is returning this instead of \"...)

With json_decode() you will get:

{#4
  +"errors": array:1 [
    0 => {#5
      +"message": "Argument "input" has an invalid value: ...."
    }
  ]
}

However with JsonParser you will get:

{#17
  +"errors": array:1 [
    0 => {#16
      +"message": "Argument "input" has an invalid value: ...."
    }
  ]
}

Any idea of how this could be fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions