C#中如何将josn数据中的某个字段数据删除
{"Wo":[{"new":"3","trans":"r"}],"Ma":[{"s":"04743c9a831e48d3a7196083855bafc4","conten...
{"Wo":[{"new":"3","trans":"r"}],"Ma":
[{"s":"04743c9a831e48d3a7196083855bafc4","content":""},
{"s":"cca508bcf12a46e19109c28641c334e6","content":""},
{"s":"09f6fc80ef00437fba5a0c26eb077da3","content":""},
{"s":"a5158d2a8edc4e8f9d8604bee7c4b46f","content":""},
{"s":"0222f32acef846458d3282840a4f82b3","content":""}],"ST":
[{"a":"04743c9a831e48d3a7196083855bafc4","Content":"1"},
{"a":"cca508bcf12a46e19109c28641c334e6","Content":"2"},
{"a":"09f6fc80ef00437fba5a0c26eb077da3","Content":"3"},
{"a":"a5158d2a8edc4e8f9d8604bee7c4b46f","Content":"4"},
{"a":"0222f32acef846458d3282840a4f82b3","Content":"5"}]}
这是一段json数据我如何将里面ST的数据删除,谢谢,急用 展开
[{"s":"04743c9a831e48d3a7196083855bafc4","content":""},
{"s":"cca508bcf12a46e19109c28641c334e6","content":""},
{"s":"09f6fc80ef00437fba5a0c26eb077da3","content":""},
{"s":"a5158d2a8edc4e8f9d8604bee7c4b46f","content":""},
{"s":"0222f32acef846458d3282840a4f82b3","content":""}],"ST":
[{"a":"04743c9a831e48d3a7196083855bafc4","Content":"1"},
{"a":"cca508bcf12a46e19109c28641c334e6","Content":"2"},
{"a":"09f6fc80ef00437fba5a0c26eb077da3","Content":"3"},
{"a":"a5158d2a8edc4e8f9d8604bee7c4b46f","Content":"4"},
{"a":"0222f32acef846458d3282840a4f82b3","Content":"5"}]}
这是一段json数据我如何将里面ST的数据删除,谢谢,急用 展开
2个回答
展开全部
var test={
"Wo":[
{
"new":"3",
"trans":"r"
}
],
"Ma":[
{
"s":"04743c9a831e48d3a7196083855bafc4",
"content":""
},
{
"s":"cca508bcf12a46e19109c28641c334e6",
"content":""
},
{
"s":"09f6fc80ef00437fba5a0c26eb077da3",
"content":""
},
{
"s":"a5158d2a8edc4e8f9d8604bee7c4b46f",
"content":""
},
{
"s":"0222f32acef846458d3282840a4f82b3",
"content":""
}
],
"ST":[
{
"a":"04743c9a831e48d3a7196083855bafc4",
"Content":"1"
},
{
"a":"cca508bcf12a46e19109c28641c334e6",
"Content":"2"
},
{
"a":"09f6fc80ef00437fba5a0c26eb077da3",
"Content":"3"
},
{
"a":"a5158d2a8edc4e8f9d8604bee7c4b46f",
"Content":"4"
},
{
"a":"0222f32acef846458d3282840a4f82b3",
"Content":"5"
}
]
}
delete test.ST;
"Wo":[
{
"new":"3",
"trans":"r"
}
],
"Ma":[
{
"s":"04743c9a831e48d3a7196083855bafc4",
"content":""
},
{
"s":"cca508bcf12a46e19109c28641c334e6",
"content":""
},
{
"s":"09f6fc80ef00437fba5a0c26eb077da3",
"content":""
},
{
"s":"a5158d2a8edc4e8f9d8604bee7c4b46f",
"content":""
},
{
"s":"0222f32acef846458d3282840a4f82b3",
"content":""
}
],
"ST":[
{
"a":"04743c9a831e48d3a7196083855bafc4",
"Content":"1"
},
{
"a":"cca508bcf12a46e19109c28641c334e6",
"Content":"2"
},
{
"a":"09f6fc80ef00437fba5a0c26eb077da3",
"Content":"3"
},
{
"a":"a5158d2a8edc4e8f9d8604bee7c4b46f",
"Content":"4"
},
{
"a":"0222f32acef846458d3282840a4f82b3",
"Content":"5"
}
]
}
delete test.ST;
追问
delete test.ST; 这句话什么意思?是在C#中写的吗?
追答
这个当然是js里面的啊
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-03-26
展开全部
你能把你的实体类贴出来么?
我看下。
叫你发邮件你也没有发。
我看下。
叫你发邮件你也没有发。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询