小编Bha*_*r V的帖子

使用 C# 删除文件中重复的 JSON 对象

我的文件中有几千个 json 对象。我想通过按 id 删除重复条目来清理它。

\n\n

JSON 文件结构:

\n\n
{\n"quote": [{\n"id":1,\n"title": "Mahatma Gandhi",\n"quote":"A man is but a product of his thoughts. What he thinks he becomes.",\n"videourl": "https://www.youtube.com/watch?v=2GgK_Nq9NLw",\n"websiteurl":"http://www.mkgandhi.org/",\n"otherurl":"https://en.wikipedia.org/wiki/Mahatma_Gandhi",\n"updatedon":"19-Aug-2017",\n"username":"XXX@gmail.com",\n"details":"Mohandas Karamchand Gandhi (2 October 1869 \xe2\x80\x93 30 January 1948), commonly known as Mahatma Gandhi (Sanskrit: \xe0\xa4\xae\xe0\xa4\xb9\xe0\xa4\xbe\xe0\xa4\xa4\xe0\xa5\x8d\xe0\xa4\xae\xe0\xa4\xbe mah\xc4\x81tm\xc4\x81 \'Great Soul\'). In India he is generally regarded as Bapu (Gujarati: \xe0\xaa\xac\xe0\xaa\xbe\xe0\xaa\xaa\xe0\xab\x81 b\xc4\x81pu \'father\'), Jathi Pitha and Raashtra Pita; he was an advocate and pioneer of nonviolent social protest and direct action in the form he …
Run Code Online (Sandbox Code Playgroud)

c# json bigdata

3
推荐指数
1
解决办法
5329
查看次数

标签 统计

bigdata ×1

c# ×1

json ×1