1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

x.json2: skip whitespace before scanning (#9508)

This commit is contained in:
Ned Palacios
2021-03-30 15:40:20 +08:00
committed by GitHub
parent c4e389be41
commit c5302bfcf5
5 changed files with 67 additions and 26 deletions

View File

@@ -4,7 +4,8 @@
module json2
// `Any` is a sum type that lists the possible types to be decoded and used.
pub type Any = Null | []Any | bool | f32 | f64 | i64 | u64 | int | map[string]Any | string
pub type Any = Null | []Any | bool | f32 | f64 | i64 | int | map[string]Any | string |
u64
// `Null` struct is a simple representation of the `null` value in JSON.
pub struct Null {