Commit graph

33 commits

Author SHA1 Message Date
Larsimusrex
bae7684276
json2: replace encoder with new implementation (#25224)
Some checks failed
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
wasm backend CI / wasm-backend (windows-2022) (push) Waiting to run
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Waiting to run
json decoder benchmark CI / json-encode-benchmark (push) Has been cancelled
json encoder benchmark CI / json-encode-benchmark (push) Has been cancelled
2025-09-09 18:50:22 +03:00
Larsimusrex
a11de7263f
decoder2: improve checker with better EOF detection (#25075)
Some checks failed
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
json decoder benchmark CI / json-encode-benchmark (push) Has been cancelled
json encoder benchmark CI / json-encode-benchmark (push) Has been cancelled
2025-08-09 16:38:58 +03:00
Felipe Pena
54fec7b772
x.json2.decoder2: fix option decode (fix #24861) (#24881) 2025-07-13 10:26:45 +03:00
Felipe Pena
8f15d65168
cgen, x.json2: fix anon struct encode (fix #24836) (#24852) 2025-07-06 06:41:42 +03:00
Hitalo Souza
cd244757db
x.json2: update tests to integrate decoder2 in json2 (#24551) 2025-05-29 13:01:50 +03:00
Laurent Cheylus
4dc3465046
x.json2: fix tests for deprecated function fast_raw_decode (#24527) 2025-05-20 16:03:00 +03:00
kbkpbot
1f8f6d0e7d
x.json2: add u16(),u32() (fix #24337) (#24342) 2025-04-28 04:20:38 +03:00
Mr. Doge
21874f93dc
x.json2: fix "\\" scanner bug, disallow (ch < 0x20) unescaped control characters (#23954) 2025-03-16 13:38:40 +02:00
Delyan Angelov
af6247135c
x.json2: add a convenience Any.as_map_of_strings/0 method 2025-03-08 16:49:50 +02:00
Felipe Pena
87c0a9ce28
checker: fix comptime indexexpr resolving (#23333) 2025-01-02 01:48:50 +02:00
Felipe Pena
2112bb82eb
checker: fix structinit validation on nested generic Map[K]V (fix #23329) (#23332) 2025-01-01 15:33:56 +02:00
Hitalo Souza
de3b184b01
json2.decoder2: prepare decoder in json2 to be replaced by json2.decode2 (#23078) 2024-12-06 19:47:17 +02:00
Carlos Esquerdo Bernat
eb57746a59
x.json2: allow parsing a value from a multidimensional array in map_from (#22442) 2024-10-08 09:49:45 +03:00
kbkpbot
e83b0d221f
x.json2: make encode number cJson compatible (fix #22363) (#22419) 2024-10-06 11:23:42 +03:00
Felipe Pena
cafb69dee2
x.json2: add support to array of array (fix #22362) (#22365) 2024-10-04 10:05:05 +03:00
yuyi
acf6b344f7
fmt: fix formating a file in an oscillating manner (fix #22223, fix #22026) (#22232) 2024-09-17 09:47:38 +03:00
Carlos Esquerdo Bernat
4188deb96d
x.json2: support @[skip] as well (#22077) 2024-08-19 15:49:31 +03:00
Felipe Pena
4940f2d41c
v: define a default sumtype value (based on the first variant type) (#22039) 2024-08-16 21:07:57 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
tcn
2d43f38bf3
x.json2, toml: add support for Any in decode_struct, encode_struct and to_any (#21972) 2024-08-01 15:26:09 +03:00
Felipe Pena
769e9147c3
v: change old attr syntax mention to new one in comments too (#21860) 2024-07-14 09:39:37 +03:00
Felipe Pena
70b33fc303
cgen,x.json2: fix generic map decoding (#21704) 2024-06-22 13:17:14 +03:00
Turiiya
dfc0c91295
checker: turn warnings for private fields into errors (#21296) 2024-06-09 10:19:52 +03:00
Delyan Angelov
dbc6b50cda
vlib: make ./v -Wimpure-v -W test vlib/ pass on Linux (#21554) 2024-05-23 16:21:01 +03:00
Turiiya
1363cc85fd
time: update unix time acces, fix issues related to deviating unix times (#21293) 2024-04-17 00:33:37 +03:00
Turiiya
a1b6360da5
x.json2: add ability to decode arrays (#21163) 2024-04-02 05:32:11 +03:00
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Pierre Curto
aeadc0a12a
x.json2: improve error message upon missing comma (#20602) 2024-03-12 19:16:08 +02:00
Hitalo Souza
ac9b724b3b
x.json2: improve performance of string encoding for unicode special characters and emojis (#20867) 2024-03-03 12:02:44 +02:00
johnpgr
87320f8f93
x.json2: fix encoder commas (#20916) 2024-02-27 19:55:02 +02:00
johnpgr
c6048d50bf
x.json2: add skippable field attr @[json: '-'] (improve backwards compatibility with the json module) (#20892) 2024-02-26 21:05:38 +02:00
Hitalo Souza
2bf590e90d
x.json2: move json2 tests to subfolders (#20842) 2024-02-16 10:58:51 +02:00