{
  "id": 138934,
  "title": "Annotations JSON issue",
  "url": "/competitions/herbarium-2020-fgvc7/discussion/138934",
  "author_name": "",
  "post_date": "2020-03-26T20:16:20.389228100Z",
  "votes": 1,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Hello,</p>\n\n<p>As I can see train JSON contains non utf-8 symbols and it is impossible to directly load it with python JSON library. How do you load to memory annotation files?</p>",
  "messages": [
    {
      "id": "787477",
      "postDate": "03/26/2020 20:16:20",
      "content": "<p>Hello,</p>\n\n<p>As I can see train JSON contains non utf-8 symbols and it is impossible to directly load it with python JSON library. How do you load to memory annotation files?</p>",
      "rawMarkdown": "Hello,\n\nAs I can see train JSON contains non utf-8 symbols and it is impossible to directly load it with python JSON library. How do you load to memory annotation files?",
      "votes": null
    },
    {
      "id": "787833",
      "postDate": "03/27/2020 05:45:52",
      "content": "<p>Try this:\n<code>\ntrainPath=\"../input/herbarium-2020-fgvc7/nybg2020/train/metadata.json\"\nwith open(trainPath, encoding=\"utf8\", errors='ignore') as f:\n     data = json.load(f)\n</code></p>",
      "rawMarkdown": "Try this:\n```\ntrainPath=\"../input/herbarium-2020-fgvc7/nybg2020/train/metadata.json\"\nwith open(trainPath, encoding=\"utf8\", errors='ignore') as f:\n     data = json.load(f)\n```",
      "votes": null
    },
    {
      "id": "891075",
      "postDate": "06/17/2020 21:53:58",
      "content": "<p>Thanks a lot </p>",
      "rawMarkdown": "Thanks a lot",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 787833,
      "author_name": "shaunspinelli",
      "author_url": "",
      "post_date": "03/27/2020 05:45:52",
      "content": "<p>Try this:\n<code>\ntrainPath=\"../input/herbarium-2020-fgvc7/nybg2020/train/metadata.json\"\nwith open(trainPath, encoding=\"utf8\", errors='ignore') as f:\n     data = json.load(f)\n</code></p>",
      "votes": null,
      "replies": [
        {
          "id": 891075,
          "author_name": "sumeetsawant",
          "author_url": "",
          "post_date": "06/17/2020 21:53:58",
          "content": "<p>Thanks a lot </p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "787477": "Hello,\n\nAs I can see train JSON contains non utf-8 symbols and it is impossible to directly load it with python JSON library. How do you load to memory annotation files?",
    "787833": "Try this:\n```\ntrainPath=\"../input/herbarium-2020-fgvc7/nybg2020/train/metadata.json\"\nwith open(trainPath, encoding=\"utf8\", errors='ignore') as f:\n     data = json.load(f)\n```",
    "891075": "Thanks a lot"
  },
  "source": "meta"
}