Quotes in string from encodeToString() #501
-
Hello, the example under "Serializing from a Kotlin object to YAML" prints the following: leader: "Amy"
Is there a built-in possibility to print it without the quotes? Normally, the values in YAML should not have quotes. Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Answered by
charleskorn
Jan 17, 2024
Replies: 2 comments
-
Yep, try setting |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
medvedy
-
Thanks, works! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yep, try setting
YamlConfiguration.singleLineStringStyle
andYamlConfiguration.multiLineStringStyle
toPlain
.