-
Notifications
You must be signed in to change notification settings - Fork 32
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
Hash Worksheet titles #14
Comments
I think this is the same problem this PR is addressing, right? As mentioned there, we should probably add an option for that. |
Similar. I'd like the Worksheet Title to become the name of the object like:
I'm trying to integrate GSheets data into Google Firebase. The JSON Editor is horrible over there so I was hoping to use this and use their "Import JSON" feature. However, the Firebase structure is a tree and not array. So I need to be able to use strings as the name of an object. In that PR, seems like the solution is to add a "title" and "index" as values. My request is different in that I want that "title" to be the key/hash of the Worksheet object |
If this wasn't a CLI tool, I think the suggested format (a list of objects with data.reduce((result, sheet) => {
result[sheet.title] = sheet.data
return result
}, {}) However, as I'd like the tool to remain as standalone as possible, offering a way to control the result is more adequate, so I'll probably add a option so you can choose between various result formats (one of them being what you need). |
That would be great. Thanks |
Would be nice if we could include worksheet titles in the json result.
Currently if all worksheets are included in a single json. Each worksheet is an array element.
Maybe a flag to determine if worksheets are treated as objects or array elements?
The text was updated successfully, but these errors were encountered: