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

JSON within cell #15

Open
cfoulston opened this issue May 12, 2017 · 2 comments
Open

JSON within cell #15

cfoulston opened this issue May 12, 2017 · 2 comments

Comments

@cfoulston
Copy link

Any chance of adding an option to "keep cell JSON" or detect if the cell is itself a JSON object?
I get this result:

{
    "Gold": {
        "id": "Gold",
        "cost": 0,
        "values": "{ \"min\":100, \"max\":1000 }"
    }
}

But I really want:

{
    "Gold": {
        "id": "Gold",
        "cost": 0,
        "values": { "min":100, "max":1000 }
    }
}
@bassarisse
Copy link
Owner

You can of course post-process your data, passing values through JSON.parse. But a more elegant way would be using multiple rows as header (using the option header-size, added in 1.0.0). The values cell would be a merged cell, above min and max. I still have do document this option a "little" better.

@cfoulston
Copy link
Author

Ok, yeah documentation on the header-size would help. I'm using this purely as a CLI, so unsure as to how get JSON.parse in there.

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