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

12 Commits

Author SHA1 Message Date
Hitalo Souza
0ac6ba9354
json2: encode sumtype (#17041) 2023-01-21 20:26:55 +02:00
Hitalo Souza
55787ff78f
json2: refactor, doc, perf, test, errors (#16986) 2023-01-15 22:52:48 +01:00
Hitalo Souza
28cbaf66b8
json2: refactoring and fixes (#16893) 2023-01-15 12:30:33 +02:00
Hitalo Souza
199db81b23
json2: refactor after #16951 (#16976) 2023-01-14 21:30:29 +02:00
Hitalo Souza
d1306ffcf5
checker,json2: relax checking of x.enum = integer at comptime; refactor json2 to clean it up (#16926) 2023-01-11 10:18:45 +02:00
Hitalo Souza
33a99fe833
json2: fix encoding of struct fields that are aliases (#16925) 2023-01-09 22:43:01 +02:00
JalonSolov
90941b3b1f
all: change optional to option (#16914) 2023-01-09 09:36:45 +03:00
Hitalo Souza
8f217c00e5
x.json2: refactor/fix json2.encode, add more tests (#16790) 2023-01-05 15:17:38 +02:00
yuyi
1c151fbec9
cgen: fix struct optional field zero init (#16814) 2022-12-31 17:36:14 +02:00
Hitalo Souza
b682e9ec0b
json2: decode time.Time, supporting unix timestamps (like json), as well as rfc3339 datetimes (#16653) 2022-12-12 10:06:29 +02:00
Hitalo Souza
d7c244e5ec
x.json2: support time.Time values in encode (#16643)
* feat: json2 time.Time encode

* refactor: best var name

* fix: use 'RFC 3339' as pattern in json encode

* fix: unused var for unaliased_typ

* fix: improve test

* use the clearer test after V ad24c22, that made format_rfc3339 more stable

Co-authored-by: Delyan Angelov <delian66@gmail.com>
2022-12-11 16:54:28 +02:00
Hitalo Souza
30b39bebde
x.json2: refactor json tests (#16638) 2022-12-10 18:44:20 +02:00