Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axios Safe JSON parsing #2927

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Jun 26, 2020

  1. JSON.parse will throw on any input that isn't a string. Interceptors …

    …may change the data to return as a valid JS object/array/etc.
    
    While not perfect, it will simply return the object it has in the case that it throws an error. Also adds in the jsonParse function call for HandleReferences in case an override wants to be provided though code.
    zach.dow committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    5668c35 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2020

  1. Fixing variable names

    zach.dow committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    f0e8954 View commit details
    Browse the repository at this point in the history