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

Added possibility to exclude labels and tag from the LTSV #481

Closed
wants to merge 2 commits into from

Conversation

kayrus
Copy link

@kayrus kayrus commented Nov 20, 2014

If you would like to store original JSON data in simple text format without additional labels and tags now you can use the following options for ltsv format:

include_label false
output_tag false

@repeatedly
Copy link
Member

Sorry, I'm not sure what the PR cause.
Could you show me the actual output?
It seems TSV, right?

@kayrus
Copy link
Author

kayrus commented Nov 20, 2014

So if you have the following json input:

{tag:'tag',key1:'val1',key2:'val2',key3:'val3'}
{tag:'tag',key1:'val4',key2:'val5',key3:'val6'}

The LTSV with the following options

include_label false
output_tag false
delimiter ' '

will provide output:

val1 val2 val3
val4 val5 val6

In some cases it is necessary to get plain values output instead of json.

@repeatedly
Copy link
Member

It seems CSV family, not LTSV.
So adding CSV/TSV formatter is better than adding more parameters to LTSV.

@repeatedly repeatedly added the feature request *Deprecated Label* Use enhancement label in general label Nov 22, 2014
@repeatedly
Copy link
Member

#489 supports similar use-case.
So I close this PR. Please use above PR instead.

@repeatedly repeatedly closed this Nov 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request *Deprecated Label* Use enhancement label in general
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants