Skip to content

Any ideas for pre-parsing a JSON file for replacement of environment variables? #4501

Answered by gregmarr
Tails86 asked this question in Q&A
Discussion options

You must be logged in to vote

Sounds like you want an input adapter. https://github.com/nlohmann/json/blob/develop/include/nlohmann/detail/input/input_adapters.hpp
wide_string_input_adapter is an example of converting text between when it's read from the underlying adapter and when it's provided to the parser.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Tails86
Comment options

@gregmarr
Comment options

@gregmarr
Comment options

Answer selected by Tails86
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