Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    This is valid JSON, at least according to JSONLint. The library you used has a bug.
    – user529758
    Commented May 2, 2013 at 12:28
  • 1
    I tried this line with the two popular parsers: Jansson and CCAN JSON parcer for C.
    – Ze..
    Commented May 2, 2013 at 12:33
  • You really should not hard-code locale names (which are not portable). Best practices would be to call setlocale(LC_CTYPE, "") to get the configured locale and then assert that nl_langinfo(CODESET) gives you the string "UTF-8" or something similar. Commented May 2, 2013 at 12:54