-
Is it possible to bind an object to a Json file, so that, in runtime, the object's values responds immediately to changes in the Json file? |
Beta Was this translation helpful? Give feedback.
Answered by
gfoidl
Mar 1, 2024
Replies: 1 comment 3 replies
-
There's no inbox-solution for this. You could craft something for this based on file system watchers. If your usecase is for configuration, etc. then the .NET config model provides |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes.
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).