Skip to content

Two-way binding of an object to a Json file #99106

Closed Answered by gfoidl
karmeye asked this question in Q&A
Discussion options

You must be logged in to vote

Regarding IOptionsMonitor, that has to be used with Microsoft.Extensions.Configuration, right?

Yes.

write to the json file

Does a trivial approach (load into memory, use it, then write back to file once done) not work for you?
Kind of using the JSON file as database that way is very brittle -- sure that depends on the use-case (which is unknown to us).

Replies: 1 comment 3 replies

Comment options

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

@gfoidl
Comment options

Answer selected by karmeye
@karmeye
Comment options

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