Easiest way to serialize and store objects in C #?

Im looking for a simple solution to serialize and store objects containing configuration, application state and data. Its a simple application, its not a lot of data. Speed ​​is not a problem. I want him to be in the process. I want this to be easier in a text editor than in xml.

I cannot find any document database for .net that can process it in the process. Just serialization in xml I'm not sure what I want to do, because ... xml. Serialization for JSON seems very specific to JavaScript, and I will not use this data in javascript.

I find that there are very neat ways to do this, but atm im tends to use JSON, despite its JavaScript tendency.

+5
source share
2 answers

Just because "JSON" is an abbreviation for JavaScript Object Notation, it has nothing to do with whether it fits your needs or not as a data format. JSON is lightweight, text-based, easy to read / edit, and the language is an informal format, despite the name.

I definitely tend to use it as it sounds pretty perfect for your situation.

+5
source

I will give a few options:

  • : , dependecy, . , , Microsoft, . , , , , , , , .

  • ORM . SQLite - , ( ) ACID. , mapper.

, .

.

.

+1

All Articles