我不想使用库。我想弄清楚如何正确解析JSON数据。Json数据无解码解码器
示例内容:
如果我是这样解析:
{"Name": [
{
"Type": "Type1",
"Content": "Content 1"
},
{
"Type": "Type1",
"Content": "Content 2"
},
{
"Type": "Type2",
"Content": "Content 3"
},
{
"Type": "Type2",
"Content": "Content 4"
}
]
}
我会简单地去使用索引和子等? 还是有什么关于字符串操作,我错过了?
你真的想重新发明轮子吗? – Pino
我们在谈论哪种语言? JavaScript的? –
我将使用C#,但大多数语言的字符串操作函数无论如何都是相似的,所以没关系。 – Democrats