UltraJSON's architecture is fundamentally ill-suited to making changes without risk of introducing new security vulnerabilities. As a result, this library has been put into a maintenance-only mode.
yq can be called as a module if needed. With -y/-Y, files can be edited in place like with sed -i: Because YAML treats JSON as a dialect of YAML, you can use yq to convert JSON to YAML: yq -y . < ...