Update rfc8416.php to do JSON_NUMERIC_CHECK when encoding into json array

This commit is contained in:
netravnen 2018-12-17 19:22:18 +00:00
parent 1612397f30
commit eccf0ce24b

View file

@ -283,7 +283,7 @@ foreach ($raw_array as $sub_array)
}
// Do JSON encoding before writing result to file
$json = json_encode($roas, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT);
$json = json_encode($roas, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT|JSON_NUMERIC_CHECK);
// Write JSON to file
$fp = fopen('roa/export_rfc8416_dn42.json', 'w');