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
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ Using the JSON support from the Qt Framework, this library allows user to define
5
5
1) Introduces the type awareness for the target JSON field. This allows the IDE to autocomplete the fields and their potential methods. Type awareness also prevents potential runtime errors that comes from mistyping or type safety related mistakes.
6
6
2) The object checks for the missing fields from the json data (it can be disabled)
7
7
3) Class interface reduces the verbosity while accessing the desired field
8
+
Documentation can be seen with the following: 
8
9
9
10
10
11
@@ -14,10 +15,10 @@ Using the JSON support from the Qt Framework, this library allows user to define
14
15
15
16
Requirements for this library are as follows:
16
17
1) QT Framework (Qt5 or later)
17
-
2) C++11 or later
18
+
2) C++17 or later
18
19
\
19
20
This library only uses the header files, so building the project isn't required. \
20
-
Building the project executes the tests and runs the code example.
21
+
Building the project can still be done for the tests and code examples.
21
22
22
23
## Usage/Examples
23
24
@@ -35,15 +36,15 @@ Let's say, a file named "example.json" contains the following json data:
To parse this data, first we need to define our tagged JSON object class with the help of the "DEFINE_JSON_TAGGED_OBJECT" preprocessor macro. Each field of the defined class should match with the field names of the json data
39
+
To parse this data, first we need to define our tagged JSON object class with the help of the "TJO_DEFINE_JSON_TAGGED_OBJECT" preprocessor macro. Each field of the defined class should match with the field names of the json data
39
40
40
41
```c++
41
42
/*
42
43
This is the definition for the inner object which will be used for defining the outer object.
43
44
Alternatively, the inner class can be defined as TaggedQJsonObject at the outer class but this
44
45
prevents inner class members to be accessed directly, which defeats the purpose of this library.
45
46
*/
46
-
DEFINE_JSON_TAGGED_OBJECT(InnerClass,
47
+
TJO_DEFINE_JSON_TAGGED_OBJECT(InnerClass,
47
48
(TaggedJSONString, example_sub_str))
48
49
49
50
/*
@@ -52,7 +53,7 @@ Other parameters are the type-field pairs that defines the members of the define
52
53
It should be noted that TaggedJSONObject class variants should be used for the field types instead of
0 commit comments