Commit Graph

25 Commits (9a0f4995063ad45f44c53f7c1ad7b9c578ff16cc)

Author SHA1 Message Date
Daniel Däschle d679146a80
fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
Alexander Medvednikov ae6a25f44e websocket, utf: u8 fixes 2022-04-15 16:24:02 +03:00
Alexander Medvednikov d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
Ned 437fa02f27
x.json2: add customized JSON output capability via Encoder (#13654) 2022-03-04 14:39:23 +03:00
Benjamin Stigsen ceb05b163a
strings: rename Builder.write_b() to Builder.write_byte(), add deprecation (#13313) 2022-01-28 20:34:44 +02:00
playX c07ce3ff15
cgen,json2: improve -nofloat support (#13117) 2022-01-10 12:42:41 +02:00
Alexander Medvednikov 59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
Larpon 1d41d9daf9
json2: improve readability, add tests utilizing fix #12667 (#12836) 2021-12-15 12:20:05 +02:00
Delyan Angelov 1913de0187
x.json2: fix compilation with -autofree 2021-11-28 18:32:04 +02:00
Don Park ae54cd78f5
json2: encode ascii chars < 0x20 in json (#12494) 2021-11-18 08:34:00 +03:00
Delyan Angelov 58df35b453
x.json2: fix `json_string` for utf8 codepoints, add regression test 2021-06-29 11:40:52 +03:00
pancake 1bf7d968f9
x.json2: add u64 (#9457) 2021-03-25 16:53:39 +01:00
Delyan Angelov c76c69ec35
all: simplify `return if ...` constructs to make more code compatible with -autofree 2021-03-22 16:45:29 +02:00
Ned Palacios ee879f3e41
x.json2: proper string encoding + minor fixes (#9026) 2021-03-01 10:22:36 +01:00
Ned Palacios 8dff168e01
x.json2: create custom scanner for scanning JSON (#8716) 2021-02-26 08:36:02 +02:00
zakuro f54c1a5cc2
all: add strings.Builder.write_string and use write_string instead of write (#8892) 2021-02-22 13:18:11 +02:00
Lukas Neubert e4a67dea37
json2: wrap Builder.free() calls inside unsafe (#8790) 2021-02-17 02:19:26 +02:00
Lukas Neubert ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
Swastik Baranwal a9ab79d301
checker: ban any_int/any_float outside buitlin (#7675) 2020-12-31 12:41:30 +01:00
Ned Palacios 6c634086b0
json2: decode fn returns `?T`; add new tests (#6933) 2020-11-29 14:54:45 +01:00
Daniel Däschle 7d6f97259f
all: refactor UnionSumType to SumType (#6944) 2020-11-25 13:09:40 +02:00
Daniel Däschle aa6303f0b2
all: use the new types with old syntax (#6922) 2020-11-24 13:58:29 +01:00
Anton Zavodchikov fe3d2a9aba
json2: unescape characters (#6836) 2020-11-15 14:58:17 +02:00
Ned Palacios fc375a40f8
x.json2: add fast_raw_decode; support for i64 and f32 (#6586) 2020-10-09 16:11:55 +02:00
Ned Palacios 368c2a6bf0
vlib: add x/json2 (#6336) 2020-09-10 12:05:40 +02:00