Commit e76ba7a
[ujson] Add support for quoted integers.
This change implements parsed for quoted integers. The implementation
authored by [email protected].
JSON messages generated by protobuf libraries will use quoted strings
for `uint64` types. See for example:
{"wafer_auth_secret":[2790285947,1491553456,2694274708,1137231153,1404344500,190480117,3248928340,4233979174],"test_unlock_token_hash":["18123448053906926503","14479932172051545263"],"test_exit_token_hash":["895855566562726762","1749132506438826860"]}
The change provided in this patch allows the device to parse the payload
above. Before this change, the ujson module would return a parsing
integer error.
Signed-off-by: Miguel Osorio <[email protected]>
(cherry picked from commit d31761b)1 parent 0b859cf commit e76ba7a
2 files changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
172 | 181 | | |
173 | 182 | | |
174 | 183 | | |
| |||
194 | 203 | | |
195 | 204 | | |
196 | 205 | | |
197 | | - | |
198 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
199 | 219 | | |
200 | 220 | | |
201 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
0 commit comments