json 파일에 둘 이상의 키를 추가하려면 어떻게해야합니까?JSON iPhone에 더 많은 키 삽입
NSArray *keys = [NSArray arrayWithArray:allkeys];
NSArray *objects = [NSArray arrayWithArray:allobjects];
NSDictionary *jsonDictionary = [NSDictionary dictionaryWithObjects:objects forKeys:keys];
앞에서 볼 수 있듯이 jsonDictionary는 키이지만 더 많은 키가있는 키를 원합니다. 나는 "forKeys : 키, keys2"시도했다. :
{"text2":"Untitled {{400, 100}, {200, 100}} <UICFFont: 0x2c3960> font-family: \"Helvetica\"; font-weight: normal; font-style: normal; font-size: 12px","text3":"Untitled {{400, 100}, {200, 100}} <UICFFont: 0x2c3960> font-family: \"Helvetica\"; font-weight: normal; font-style: normal; font-size: 12px","text1":"Untitled {{400, 100}, {200, 100}} <UICFFont: 0x2c3960> font-family: \"Helvetica\"; font-weight: normal; font-style: normal; font-size: 12px"}
배열의 키를 텍스트 1, 텍스트 2를 포함 ... 그리고 배열 객체의 크기를 제목 없음 포함 (keys2 다른 배열을하지만, 작동하지 않는 지금 이것은 결과입니다 ...하지만 난 모든 함께 내부의 "텍스트 입력", "크기"...와 키 "텍스트 1"을 원하는
이 같은 될 수있다. 사전에
{
"menu": {
"header": "xProgress SVG Viewer",
"items": [
{
"id": "Open"
},
감사합니다 도움