I dont know whats wrong, but the following always says syntaxerror.
json_encode Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data
const config_list = <?php echo json_encode($config_list); ?>;
const xx = JSON.parse(config_list);
x = xx.COUNTRY["1"];
alert(x);