Yorhel
a8ac435f85
Move control character checking to FU::Validate, deprecate FU::Util::utf8_decode()
...
URI, JSON and formdata decoding no longer checks for control characters,
but FU::Validate now rejects control characters by default. This
decouples semantic validation from format parsing and gives better
control over when control characters are allowed.
2025-08-22 10:03:06 +02:00
Yorhel
55baa6c9a6
json_parse(): Disallow control characters in strings by default
...
Deviating from the standard, but more consistent other FU functions.
2025-06-04 18:48:08 +02:00
Yorhel
d0c5397e2d
json_parse()/pgtypes: Fix accidental creation of read-only array/hash values
...
&PL_sv_* shouldn't be used when constructing arrays or hashes in this
context.
2025-04-28 10:23:51 +02:00
Yorhel
f09a103c53
Some test portability fixes again + minor changes
2025-03-02 10:10:35 +01:00
Yorhel
de36b90cde
Fixes for longdouble perl builds
...
Mostly test fixes, but the Pg 'timestamp' type did have a small
conversion bug.
2025-02-27 09:35:15 +01:00
Yorhel
13eaeb1d4a
jsonparse: Add max_depth, max_size and offset options
...
This completes all the functionality that I wanted from the JSON parser.
2025-02-01 11:01:49 +01:00
Yorhel
abfbba3c10
Add some tests and move some docs
2025-02-01 07:00:09 +01:00
Yorhel
ebe84167e7
jsonparse: A bunch of performance improvements
...
Turrns out JSON::XS had some pretty good ideas that I could borrow.
2025-01-31 18:42:21 +01:00
Yorhel
7cdc02e399
jsonparse: Add basic JSON parser
...
Some TODO's left and this needs benchmarking.
2025-01-31 07:29:06 +01:00