Add initial JSON formatter

It works and can format all "plain" Perl data, but has a few known bugs
and limitations that still need to be worked out.

It's about 8x smaller than JSON::XS's encoder and *much* smaller than
Cpanel::JSON::XS, but this is just a first attempt, it'll grow.
This commit is contained in:
Yorhel 2025-01-27 15:37:05 +01:00
parent 9c80f2465a
commit c16a9fa493
10 changed files with 421 additions and 0 deletions

View file

@ -1,3 +1,4 @@
# This module is for internal use by other FU modules.
package FU::XS 0.1;
use Carp; # may be called by XS.
use XSLoader;