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

@ -124,7 +124,7 @@ pub mut:
last_name string [json: lastName]
is_registered bool [json: IsRegistered]
typ int [json: 'type']
pets string [raw; json: 'pet_animals']
pets string [json: 'pet_animals'; raw]
}
fn (mut u User) from_json(an json2.Any) {