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
+40-13Lines changed: 40 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Compare to this, **SerialX API** is doing everything programmatically. SerialX A
15
15
* Quantity, SerialX can nserialize multiple objects in to one file or string!
16
16
* Very easy to use, at the begining all what you need to know is ``Serializer.SerializeTo(file, objects)`` for serializing and ``Serializer.LoadFrom(f)`` for deserializing!
17
17
18
-
## Comparison: JACKSON (Json) vs XMLEncoder (XML) vs SerialX (SerialX data storage)
18
+
## Comparison: XML (.xml) vs Json (.json) vs YAML (.yml) vs SerialX (.srlx)
Serialized via **JACKSONE (hypothetical) for Json:**
83
+
```
84
+
...
85
+
{
86
+
"val1" : 55,
87
+
"val2" : 455.45,
88
+
"val3" : 236.12,
89
+
"flag" : true
90
+
}
91
+
```
92
+
Serialized via **(hypothetical) YAML:**
93
+
```
94
+
val1: 55,
95
+
val2: 455.45,
96
+
val3: 236.12,
97
+
flag: true
98
+
```
99
+
Serialized via **SerialX for SerialX (protocol):**
93
100
```
94
101
some.package.Foo 55D 455.45 236.12F T;
95
102
```
103
+
<br>
104
+
After introduction od variables in 1.5.0 and cope in 1.2.0: <br>
105
+
Serialized via **SerialX for SerialX (protocol + scope):**
106
+
```
107
+
some.package.Foo {
108
+
val1 = 55D,
109
+
val2 = 455.45,
110
+
val3 = 236.12F,
111
+
flag = T
112
+
}
113
+
```
114
+
Serialized via **SerialX for SerialX (scope only):**
115
+
```
116
+
{
117
+
val1 = 55D,
118
+
val2 = 455.45,
119
+
val3 = 236.12F,
120
+
flag = T
121
+
}
122
+
```
96
123
Maybe it is a question of formating but SerialX will be the shortest one anyway. Because instead of having some sort of key to the value you simply have its order (index)!
97
124
And value's data type is specified by suffix if it is a primitive data type or simply by package name as the first argument in case of an object! Other arguments (count, order, type) are then specified by a SerializationProtocol! Generally, one line means one object, one value (separated by spaces) means one argument! <br><br>
98
125
Note: Since there is variable system in 1.5.0, the order of values is now not the only option to obtain an object or value! <br>
0 commit comments