Skip to content

YamlConverter from JsonNode to Yaml adds extra quotes #2561

Description

@baywet

Describe the bug
Given the following input

{
"fooString": "fooStringValue",
"fooStringOfNumber": "200"
}

calling

varyamlNode=jsonNode.ToYamlNode();usingvarms=newMemoryStream();varyamlStream=newYamlStream(newYamlDocument(jsonNode.ToYamlNode()));varwriter=newStreamWriter(outputStream);yamlStream.Save(writer);ms.Seek(0);

And reading the string value leads to the following result

fooString: '"fooStringValue"'fooStringOfNumber: 200

Expected behavior
A clear and concise description of what you expected to happen.

fooString: fooStringValuefooStringOfNumber: "200"

Metadata

Metadata

Labels

type:bugA broken experience

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions