Do not pretty print JSON data
This commit is contained in:
parent
a236670f57
commit
acd7bd242a
|
@ -50,7 +50,7 @@ function trim_special_chars ($string)
|
||||||
|
|
||||||
function writeBirdConfig ($roas)
|
function writeBirdConfig ($roas)
|
||||||
{
|
{
|
||||||
$json = json_encode($roas, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT);
|
$json = json_encode($roas, JSON_UNESCAPED_SLASHES);
|
||||||
|
|
||||||
$bird1_fq = fopen ('roa/bird_roa_dn42.conf', 'w');
|
$bird1_fq = fopen ('roa/bird_roa_dn42.conf', 'w');
|
||||||
$bird1_fq4 = fopen ('roa/bird4_roa_dn42.conf', 'w');
|
$bird1_fq4 = fopen ('roa/bird4_roa_dn42.conf', 'w');
|
||||||
|
@ -111,7 +111,7 @@ function writeBirdConfig ($roas)
|
||||||
|
|
||||||
function writeRoutinatorExceptionFile ($roas)
|
function writeRoutinatorExceptionFile ($roas)
|
||||||
{
|
{
|
||||||
$json = json_encode($roas, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT|JSON_NUMERIC_CHECK);
|
$json = json_encode($roas, JSON_UNESCAPED_SLASHES|JSON_NUMERIC_CHECK);
|
||||||
$fp = fopen('roa/export_rfc8416_dn42.json', 'w');
|
$fp = fopen('roa/export_rfc8416_dn42.json', 'w');
|
||||||
fwrite($fp, $json);
|
fwrite($fp, $json);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
Loading…
Reference in a new issue