In this example I'm using parson to save user information to a file and then load it and validate later.
In this example I'm using parson to save user information to a file and then load it and validate later.
```c
```c
void persistence_example(void) {
void persistence_example(void) {
@ -98,7 +98,7 @@ void persistence_example(void) {
}
}
```
```
###Serialization
###Serialization
Creating JSON values is very simple thanks to the dot notation.
Creating JSON values is very simple thanks to the dot notation.
Object hierarchy is automatically created when addressing specific fields.
Object hierarchy is automatically created when addressing specific fields.
In the following example I create a simple JSON value containing basic information about a person.
In the following example I create a simple JSON value containing basic information about a person.
@ -136,10 +136,10 @@ Output:
}
}
```
```
##Contributing
##Contributing
I will always merge *working* bug fixes. However, if you want to add something new to the API, please create an "issue" on github for this first so we can discuss if it should end up in the library before you start implementing it.
I will always merge *working* bug fixes. However, if you want to add something new to the API, please create an "issue" on github for this first so we can discuss if it should end up in the library before you start implementing it.
Remember to follow parson's code style and write appropriate tests.
Remember to follow parson's code style and write appropriate tests.
##License
##License
[The MIT License (MIT)](http://opensource.org/licenses/mit-license.php)
[The MIT License (MIT)](http://opensource.org/licenses/mit-license.php)