From eccf0ce24bb1bdf26034de286980c41f135e2322 Mon Sep 17 00:00:00 2001 From: Christoffer Date: Mon, 17 Dec 2018 19:22:18 +0000 Subject: [PATCH] Update rfc8416.php to do JSON_NUMERIC_CHECK when encoding into json array --- rfc8416.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfc8416.php b/rfc8416.php index 09cb947..13bc7b1 100755 --- a/rfc8416.php +++ b/rfc8416.php @@ -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');