Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Allow fragments to be parsed as JSON in response data #255

@christianidas

Description

@christianidas

Describe the bug
We have a request to an API that is returning a JSON string (not an object). We'd like to have this response parsed, but the option for fragmentsAllowed is needed in order to parse non-object JSON. This change should allow those JSON strings, numbers, booleans, etc. to be parsed in addition to objects.

To Reproduce
Steps to reproduce the behavior:

  1. Make a request to an API that returns a JSON string (not an object).

Expected behavior
The JSON string should be parsed as a string.

Screenshots
NA

Desktop (please complete the following information):

  • OS: NA
  • Browser: NA
  • Version: NA

Smartphone (please complete the following information):

  • Device: NA
  • OS: NA
  • Browser: NA
  • Version: NA

Additional context
I have a fix created, and a PR open. Please merge #254 and publish a new version.

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