-
i am looking at the JsonConfigurationFileParser class specifically at the parse stream function (ParseStream) in this specific section:
Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
It's just a convention of design. As the codes(
Though you cannot control the files, you can check and rewrite the content of each json file into a new one, then let the parser use it. {"MySettings":[ { "version": 1, "handlerEnvironment": { "logFolder": ".\\logs", "configFolder": ".\\RuntimeSettings", "statusFolder": ".\\Status", "heartbeatFile": ".\\Status\\HeartBeat.Json" } } ]} Or you may have to write your own parser and replace the default one in DI. |
Beta Was this translation helpful? Give feedback.
It's just a convention of design. As the codes(
VisitElement
,VisitValue
) below the line you show informs, the parser accepts the premise that the json content should be a json object rather than other json types.Though you cannot control the files, you can check and rewrite the content of each json file into a new one, then let the parser use it.
Or you may have to write your own parser and replace the default one …