condition the use of locale on the exitance of JSON
Merge pull request #713 from Microsoft/JSONInLocaleFix

condition the use of locale on the exitance of JSON