이미
{
"profiles":{
name:{
asd : "asd",
sdf : "hds"
}
}
}
이렇게 있는데
{
"profiles":{
name1:{
asd : "asd",
sdf : "hds"
},
name2:{
asd: "gdf",
sdf : "ahs"
}
}
이렇게 만들고 싶음 근데
JObject profiles_json = JObject.Parse(readFile);
profiles_json1.Add("profiles", name3);
이렇게하면
Can not add property profiles to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.
이렇게 뜨는데 해결 방법좀
저런건 배열로 구성해야지
뭔소리여 돌려보긴 함?
해당 댓글은 삭제되었습니다.
이거 오브젝트 말고 이렇게 넣고 싶으면 어떻게함? name3:{}
ㄳㄳ
미쳤다 미쳤어 ㄳㄳ