Skip to content

how to disable quote when using --input-format props #2023

Closed Answered by mikefarah
shakibamoshiri asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

The property file decoder only decodes values as strings (which I think is a property file thing?) and so yq assumes all values are strings.

You can get yq to post process the document and attempt to parse all the values. This will leave anything it can't parse as a string still.

I've just added a example to the docs:

https://mikefarah.gitbook.io/yq/usage/properties#decode-properties-numbers

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shakibamoshiri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants