It is very convenient to process JSON data under Cocoa, and the core object is nsjsonserialization, which can accomplish the conversion between JSON data and the Foundation object. Convert the JSON data to the Foundation object, using Jsonobjectwithdata. Convert the Foundation object to
];
return XHR;
catch (ex) {
}
}
}
return new ActiveXObject (arguments.callee.activeXString);
} else {
throw new error ("Error");
}
}
In the JSON dataset, we know that this is a pair of key value data sets. When we take the JSON object from the server, we start parsing it and then generating the DOM node that we need. For example, the following pair of
];
Return xhr;
} Catch (ex ){
}
}
}
Return new ActiveXObject (arguments. callee. activeXString );
} Else {
Throw new Error ("Error ");
}
}
In the JSON dataset, we know that this is a pair of key values. When we get a Json object from the server, we need to parse it and then generate the DOM node we need. For example, the following is a JSON dataset.Copy codeThe C
Turn from: blog.csdn.net/eduwc/article/details/9858723
Before you start parsing, let's talk about how to read this article.
1. Due to some classes of jumps, so in the presence (jump xx) place, you can use search search to the corresponding destination to see if not in the series of depth parsing cocostudio is how to handle the action editor derived from the JSON file (1), Please go to the depth resolution
This is a translation.JSON editing toolAnd the original version are already products of 2007. browser compatibility is also a very old version, but the tool works normally in new browsers. today, I saw a blog posted by a netizen that mentioned this JSON editor. It feels good to try it. At least it can satisfy my needs. So I will share it with you by the way. the translation is as follows:
I have been searc
Starter: personal blog, update error correction replyIn yesterday's DotA fit calculator, the dota hero data and DotA player data Two database, in order to facilitate the use of Web applications, the storage format of the two databases is JSON, This is the two files of Heros.json and Players.json.The advantage of a JSON file is that it can be opened with a text editor
Carefree JSON editor [Auxiliary Tools]
Tip: you can modify some code before running
It is used for simple viewing, assisting in modifying complicated JSON data, formatting or compressing JJSON. Of course, you can also freely edit some simple JSON data in real time.
You can enter or paste some
JSON Editor plugin is an Eclipse plugin that can display JSON highlighting syntax, folding. However, there are few installation methods on the Internet, and almost all of them are invalid. I follow the steps of the official website installation is easy to succeed, and now put the target for your reference:1. Select Help->install new software in eclipse2. Click Ad
You can enter or paste some JSON data to verify that it is correct.
Press the TAB key to automatically format the full text indent.
JSON Editor
Core code
Copy Code code as follows:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.