You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please submit pull requests if you don't agree with some behaviour or found a bug, I would appreciate it.
15
+
Please submit pull requests if you don't agree with some behavior or found a bug, I would appreciate it.
15
16
The library is further matured now and changes less.
16
17
17
-
This library can parse and stringify and is designed for easy use.
18
+
This library can parse and stringify and is designed for ease of use.
18
19
Nobody wants to write parsing and stringification methods for every class they write. We rather want it
19
20
to work "just like that" without thinking about it. This is where this library fits in.
20
21
This idea of producing and consuming JSON has become the "Hello World of Introspection".
@@ -24,19 +25,19 @@ Since release 0.3, the library also features basic JSON beautification using boo
24
25
## Introduction
25
26
A JSON stringifier / parser that uses boost fusion introspection methods for automagic struct <-> JSON conversion
26
27
27
-
Its supports almost all STL contstructs in stringify and the most important for parse.
28
+
It supports almost all STL contstructs in stringify and the most important for parse.
28
29
With the STL as a basis it is an easy to extend mechanism using classes. Use boost fusion and the provided utility
29
30
(see example below) or provide your own parse/stringify methods.
30
31
31
32
NOTE: The performance of this library is mostly influenced by boost property tree which is used for parsing JSON.
32
-
The main focus of this library is not speed, but ease of use and convenience. If you want to be fast, try RapidJson (not saying it is particullarly slow, but probably not suitable for high data frequency or big bulk data application)
33
+
The main focus of this library is not speed, but ease of use and convenience. If you want to be fast, try RapidJson (not saying it is particularly slow, but probably not suitable for high data frequency or big bulk data application)
33
34
34
35
Dependencies:
35
36
> boost/property_tree <br>
36
37
> boost/fusion <br>
37
38
> boost/mpl <br>
38
39
39
-
## Example0
40
+
## Example 0
40
41
```C++
41
42
#ifndef Q_MOC_RUN // A Qt workaround, for those of you who use Qt
42
43
# include <SimpleJSON/parse/jsd.hpp>
@@ -65,21 +66,13 @@ int main()
65
66
}
66
67
```
67
68
68
-
## Example1
69
+
## Example 1
69
70
```C++
70
-
#ifndef Q_MOC_RUN // A Qt workaround, for those of you who use Qt
71
-
# include <SimpleJSON/parse/jsd.hpp>
72
-
# include <SimpleJSON/parse/jsd_convenience.hpp>
73
-
# include <SimpleJSON/stringify/jss.hpp>
74
-
# include <SimpleJSON/stringify/jss_fusion_adapted_struct.hpp>
75
-
#endif
76
-
77
71
#include <string>
78
72
#include <vector>
79
73
#include <sstream>
80
74
81
-
struct ConfigContent : public JSON::Stringifiable <ConfigContent>
0 commit comments