initCountry().then(result => console.log(JSON.stringify(result['countryCode']))).catch(e => console.log(e)) code example
Example: Javascript object to JSON string
var person={"first_name":"Tony","last_name":"Hawk","age":31};
var personJSONString=JSON.stringify(person);