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

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

Open
christianidas opened this issue Apr 21, 2022 · 0 comments
Open

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

christianidas opened this issue Apr 21, 2022 · 0 comments

Comments

@christianidas
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant