I tried not to change this from the original code, and only implemented the one that was defined but unused (JSON).

It seems to me like the original idea is to do this when "pack_type == KT_PACKER_CUSTOM", but that isn't implemented yet.