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

?_shape=array option #245

Closed
simonw opened this issue May 1, 2018 · 1 comment
Closed

?_shape=array option #245

simonw opened this issue May 1, 2018 · 1 comment

Comments

@simonw
Copy link
Owner

simonw commented May 1, 2018

Some tools (pandas.DataFrame(...) for example) are happiest when you give them a raw array of JSON objects.

?_shape=array should do just that

While I'm at it, rename the default ?_shape=lists to instead be called ?shape=arrays

And validate that _shape is a valid option

And have ?_shape=object return the object at the root level rather than nested in .rows to better match the behavior of ?_shape=array

simonw added a commit that referenced this issue May 2, 2018
* Default is now ?_shape=arrays (renamed from lists)
* New ?_shape=array returns an array of objects as the root object
* Changed ?_shape=object to return the object as the root
* Updated docs
@simonw simonw closed this as completed May 2, 2018
simonw added a commit that referenced this issue May 2, 2018
* Default is now ?_shape=arrays (renamed from lists)
* New ?_shape=array returns an array of objects as the root object
* Changed ?_shape=object to return the object as the root
* Updated docs
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