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

Add better handling for API response JSONs #32

Open
cansavvy opened this issue Dec 1, 2023 · 1 comment
Open

Add better handling for API response JSONs #32

cansavvy opened this issue Dec 1, 2023 · 1 comment

Comments

@cansavvy
Copy link
Collaborator

cansavvy commented Dec 1, 2023

A lot of this code is built based on the idea that the JSON returned from the API should be the same. But sometimes it isn't or the API might change.

So we need better handling of what happens when an expected spot in a JSON file is not there.

I'm thinking of a function like try_json() that will attempt to grab a json slot but if it isn't there will send back a detailed error report about what isn't there.

@cansavvy
Copy link
Collaborator Author

cansavvy commented Dec 4, 2023

Picturing making an R6 class object to do more standardized handling https://r6.r-lib.org/reference/R6Class.html

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

No branches or pull requests

1 participant