Skip to content

Commit 8ef08e3

Browse files
committed
merge Draft_1 with master to correct UBJSON format bug and add samples
2 parents b6c029d + c55452d commit 8ef08e3

7 files changed

Lines changed: 3250 additions & 7 deletions

JData_specification.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ The binary JData grammar is identical to the UBJSON grammar defined in the
223223
2. JData uses IEEE 754 binary form to store +/-Infinity, instead of converting to [Z], and
224224
3. optimized array container header was extended to support N-dimensional dense arrays:
225225
```
226-
[[] [$] [type] [#] [[] [$] [nx type] [#] [ndim type] [ndim] [nx ny nz ...] [nx*ny*nz*...*sizeof(type)]
226+
[[] [$] [type] [#] [[] [$] [nx type] [#] [ndim] [nx ny nz ...] [nx*ny*nz*...*sizeof(type)]
227227
```
228228
or
229229
```
@@ -790,7 +790,7 @@ Such data can also be stored in JSON/UBJSON in two forms:
790790
[
791791
{"Name": "Andy", "Age": 21, "Degree": "BS", "Height": 69.2},
792792
{"Name": "William","Age": 21, "Degree": "MS", "Height": 71.0},
793-
{"Name": "Om", "Age": 22, "Degree": "BE", "Height": 67.1},
793+
{"Name": "Om", "Age": 22, "Degree": "BE", "Height": 67.1}
794794
]
795795
```
796796

@@ -857,7 +857,7 @@ can be represented by the below JSON structure
857857
{"_TreeNode_(node2.2): data2.2}
858858
]
859859
},
860-
{"_TreeNode_(node3)": data3},
860+
{"_TreeNode_(node3)": data3}
861861
]
862862
}
863863
```
@@ -879,7 +879,7 @@ about the tree nodes, for example
879879
{"_TreeNode_(node2.2)::NodeID=5,ParentID=3": data2.2}
880880
]
881881
},
882-
{"_TreeNode_(node3)::NodeID=6,ParentID=1": data3},
882+
{"_TreeNode_(node3)::NodeID=6,ParentID=1": data3}
883883
]
884884
}
885885
```
@@ -1142,7 +1142,7 @@ of each node is listed below on the right side:
11421142
},
11431143
{ <- [2,3]
11441144
"_TreeNode_(node3)": data3 <- [2,3,1], or [[2,3]]
1145-
},
1145+
}
11461146
]
11471147
}
11481148
```

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ draft of this file specification, including
2424
- [Write short comments on Request for Comments (RFC) commits](https://github.com/fangq/jdata/commit/f8fc8f1b814e7a4654b7b0092de15eaafa94d3da)
2525
- A milestone version of the specification will be associated with an
2626
RFC (Request for comments) commit (where the entire file is removed
27-
and re-added so that every line appears in such comment). One can
27+
and re-added so that every line appears in such commit). One can
2828
write short comments as well as post replies on this RFC page.
29-
- The latest RFC commit is based on Draft 1 (version v0.6). Please use
29+
- The latest RFC commit is based on **Draft 1 (version v0.6)**. Please use
3030
[this link](https://github.com/fangq/jdata/commit/f8fc8f1b814e7a4654b7b0092de15eaafa94d3da) to comment.
3131
- To add a comment, you need to first register a github account, and then
3232
browse the above RFC page. When hovering your cursor over each line, a

0 commit comments

Comments
 (0)