jsonparse: Add basic JSON parser

Some TODO's left and this needs benchmarking.
This commit is contained in:
Yorhel 2025-01-31 07:16:46 +01:00
parent aebe5a93dc
commit 7cdc02e399
8 changed files with 508 additions and 21 deletions

8
FU.xs
View file

@ -5,11 +5,17 @@
#include "c/common.c"
#include "c/jsonfmt.c"
#include "c/jsonparse.c"
MODULE = FU PACKAGE = FU::XS
MODULE = FU PACKAGE = FU::Util
PROTOTYPES: DISABLE
void json_format(SV *val, ...)
CODE:
ST(0) = fujson_fmt_xs(aTHX_ ax, items, val);
void json_parse(SV *val, ...)
CODE:
ST(0) = fujson_parse_xs(aTHX_ ax, items, val);