Supported Versions: PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL json >= 1.2.0
Returns the JSON representation of a value
<?php json_encode(mixed $value, int $flags = 0, int $depth = 512): string|false
<?php         }



        try {

            file_put_contents($configFilePath, json_encode($options));

        } catch (Throwable) {

            return false;

        }
<?php     {

        $jsonOptions = JSON_PARTIAL_OUTPUT_ON_ERROR | JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT;



        return (string)json_encode($data, $jsonOptions);

    }



    public function getAssetContents(string $asset): string