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

status fiels required #4

Closed
JulienCojan opened this issue Jan 8, 2014 · 2 comments
Closed

status fiels required #4

JulienCojan opened this issue Jan 8, 2014 · 2 comments
Assignees

Comments

@JulienCojan
Copy link

Hi,

Thanks for this useful library.

I noted a discrepancy though with http://json-stat.org/format specifications.
It is stated that status field is optional, but JJT seems to need it.

For instance

J = JSONstat("http://json-stat.org/samples/order.json")
J.Dataset(0).Data(0).value 

Raises TypeError: this.status is null

@ghost ghost assigned badosa Jan 8, 2014
badosa added a commit that referenced this issue Jan 8, 2014
Corrects a bug in Data() when dataset didn't have status info.

See:

#4
@badosa
Copy link
Owner

badosa commented Jan 8, 2014

It's true: Data() had a bug. It only affected .Data(number) and .Data(array). The more popular .Data(object) was not affected.

Corrected in v. 0.6.2.

@badosa badosa closed this as completed Jan 8, 2014
@JulienCojan
Copy link
Author

Cool thanks

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