Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support for multi-line string values #1057
From @alexvy86 on August 3, 2017 21:11
I'm using Akka.NET in a project and the way they do configuration is not-quite-JSON, but still a hierarchical structure, which I haven't been able to successfully integrate into
For now I just put the whole thing as CDATA in an XML file and use the
Copied from original issue: aspnet/Configuration#703
From @alexvy86 on August 15, 2017 22:9
Sure, see below. The value of
It also might be worth noting that in my application I want to retrieve the value as a string, not bound to a POCO by the configuration builder (which I wouldn't be able to do anyway, because HOCON and JSON are different enough).
The JSON grammar does not allow for multi-line strings1. The VS behavior is driven from this, since it would not be possible syntactically for the next line to be part of the string token.
1: See https://www.json.org/ especially the part defining string tokens where it excludes control characters.