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

How to write json-stat? #6

Closed
moxious opened this issue Mar 5, 2016 · 3 comments
Closed

How to write json-stat? #6

moxious opened this issue Mar 5, 2016 · 3 comments
Labels

Comments

@moxious
Copy link

moxious commented Mar 5, 2016

I like the json-stat idea, and the library looks workable. I read the entire slideshare and now I'm onboard.

OK, so how to I actually write JSON-stat instances? Suppose I'm a back-end developer, and I have all kind of time series data that I'd like to send to the front in json-stat format. Categories and dimensions? Sold!

I'm having trouble finding any info online about how to write json-stat instances other than example files, and the schema documentation itself. Is there any library to facilitate this? In particular, if I'm going to write an array of values into a json-stat instance, I have to solve the "flattening" problem and do my own math based on my dimensions and concepts, of which value should be in which cell. The slideshare gives me enough detail to let me embark on this, but given Eurostat and other example JSON-stat files, someone must have already done this, and packaged it into library form, right?

Docs on the front page of this repo and in the wiki are good for reading JSON-stat, but how are people creating that data in the first place?

@moxious
Copy link
Author

moxious commented Mar 6, 2016

It makes sense that a library isn't going to be able to do everything for you in writing json-stat (like choosing metadata ordering); but you'd think that in trivial cases (turning tables with row/columns into json-stat with no additional dimensions) there'd already be something there, right?

@badosa
Copy link
Owner

badosa commented Mar 6, 2016

Could you post your questions to the JSON-stat Google Group?

https://groups.google.com/forum/#!forum/json-stat

On Sun, Mar 6, 2016 at 3:20 PM, moxious notifications@github.com wrote:

It makes sense that a library isn't going to be able to do everything for
you in writing json-stat (like choosing metadata ordering); but you'd think
that in trivial cases (turning tables with row/columns into json-stat with
no additional dimensions) there'd already be something there, right?


Reply to this email directly or view it on GitHub
#6 (comment).

@badosa badosa added the question label Mar 6, 2016
@badosa badosa closed this as completed Mar 6, 2016
@jfsiii
Copy link
Contributor

jfsiii commented Oct 3, 2016

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

No branches or pull requests

3 participants