FIX: JSON support non C locales
Merge pull request #4976 from Komnomnomnom/json-locale-fix

FIX: JSON support for non C locales