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

All objects are an array of a single index #9

Open
hadad95 opened this issue Jun 15, 2018 · 3 comments
Open

All objects are an array of a single index #9

hadad95 opened this issue Jun 15, 2018 · 3 comments

Comments

@hadad95
Copy link

hadad95 commented Jun 15, 2018

Why are all objects in the endpoints folder formed from a single-indexed array? I’ve noticed the same behaviour in the Paladins API and I can find no explanation for why it’s built like this

@apugh
Copy link
Owner

apugh commented Jun 15, 2018

No reason. It probably started that way and never changed.

Provide an alternative (just take some existing JSON and restructure it) and I'll gladly comply. Simply remove the "wrapper"/outer array?

@hadad95
Copy link
Author

hadad95 commented Jun 15, 2018

Yes that’s pretty much it. Removing the outer [ and ]

@hadad95
Copy link
Author

hadad95 commented Jun 15, 2018

That is if the endpoint is always gonna return a single object and not an array to begin with

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

2 participants