Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[spaceship] parse response body as json if not already (#18766)
* parse response body as json if not already parse response body as json if not already * parse if response.body is type of String * fixes broken test * check if response is empty and use empty json object if so, else try parse the body * Clean up logic and removed unneeded if statements and added tests * Add test for string json Co-authored-by: Muhammet Ilendemli <mi@tailored-apps.com> Co-authored-by: Josh Holtz <josh@rokkincat.com>
- Loading branch information
1 parent
8fefa6b
commit 0a25f2f
Showing
2 changed files
with
123 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters