{"id":158727,"date":"2012-11-15T11:30:06","date_gmt":"2012-11-15T07:30:06","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=158727"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=158727","title":{"rendered":"<span class=\"post_title\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 .plist \u0432 Cocoa\/CocoaTouch<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0445\u0430\u0431\u0440\u0430\u0434\u043d\u044f!<\/p>\n<p>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0430\u0441\u043f\u0435\u043a\u0442\u0430\u0445 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432 OS X \u0438\/\u0438\u043b\u0438 iOS. \u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432: Core Data, \u00ab\u0433\u043e\u043b\u044b\u0439\u00bb SQLite, \u0441\u0432\u043e\u0438 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b, \u0441\u0432\u043e\u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b, NSUserDefaults \u0438, \u043a\u0430\u043a \u0412\u044b \u0443\u0436\u0435 \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0441\u043b\u044b\u0448\u0430\u043b\u0438, \u0444\u0430\u0439\u043b\u044b \u0442\u0438\u043f\u0430 <b>PLIST<\/b>, \u0442\u043e \u0435\u0441\u0442\u044c XML <b>P<\/b>roperty <b>List<\/b>.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/b5e\/75e\/6ae\/b5e75e6ae9706cdc2a829f7e3ef9f84c.png\"\/><br \/>  \u0412\u043a\u0440\u0430\u0442\u0446\u0435, plist-\u0444\u0430\u0439\u043b\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u0439 XML, \u043d\u043e \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0430\u043c\u0438. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0442\u0435\u0433\u043e\u0432 \u0432 \u043d\u0451\u043c \u043e\u0431\u0443\u0441\u043b\u043e\u0432\u043b\u0435\u043d \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438: \u043e\u043d\u0438 \u0438\u0434\u0443\u0442 \u043f\u0430\u0440\u0430\u043c\u0438 \u00ab\u043a\u043b\u044e\u0447-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00bb, \u043d\u043e \u0442\u0435\u0433\u0438 \u0442\u0438\u043f\u0430 \u00ab\u043a\u043b\u044e\u0447\u00bb \u0438 \u0442\u0435\u0433\u0438 \u0442\u0438\u043f\u0430 \u00ab\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00bb \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435. \u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"xml\">\t&lt;key&gt;identifier&lt;\/key&gt; \t&lt;string&gt;j3qq4-h7h2v&lt;\/string&gt; <\/code><\/pre>\n<p>  \u041f\u043b\u0438\u0441\u0442\u044b \u0443\u043c\u0435\u044e\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 Cocoa: NSString, NSNumber (int, float, BOOL), NSDate, NSArray, NSDictionary \u0438 NSData. \u042d\u0442\u0438\u043c \u0442\u0438\u043f\u0430\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0435\u0433\u0438: <code>&lt;string&gt;, &lt;integer&gt;, &lt;real&gt;, &lt;true\/&gt;, &lt;false\/&gt;, &lt;date&gt;, &lt;array&gt;, &lt;dict&gt;, &lt;data&gt;<\/code>. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, plist \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0442\u0435\u0433\u043e\u0432 <code>&lt;key&gt;<\/code>, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0442\u0435\u0433\u0438 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c.<\/p>\n<p>  \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u2014 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u0438, \u0447\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435, API \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0412\u044b \u0443\u0436\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0438 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 plist&#8217;\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0438 \u0441\u043b\u043e\u0432\u0430\u0440\u0438 \u0438 \u0443 \u0412\u0430\u0441 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b: \u00ab\u0430 \u043a\u0430\u043a \u044d\u0442\u043e?\u00bb, \u00ab\u0430 \u0435\u0441\u043b\u0438 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u043c\u043e\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u044b?\u00bb, \u00ab\u0430 \u0435\u0441\u043b\u0438 \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u0435 \u0435\u0449\u0451 \u0441\u043b\u043e\u0432\u0430\u0440\u0438?\u00bb \u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0438\u043c. \u0415\u0441\u043b\u0438 \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e, \u0437\u043d\u0430\u0447\u0438\u0442 \u044d\u0442\u0443 \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0431\u0435\u0437 \u0443\u0449\u0435\u0440\u0431\u0430 \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0438 \u0441\u043b\u043e\u0432\u0430\u0440\u0438 \u043f\u0440\u0438 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u043f\u043b\u0438\u0441\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e, \u0442\u043e \u0435\u0441\u0442\u044c, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u043b\u0438 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430. \u041e\u0442\u0441\u044e\u0434\u0430 \u0438 \u0432\u044b\u0442\u0435\u043a\u0430\u044e\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435: \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0438\u043f\u044b, \u043f\u043e\u0434\u0434\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u0422\u043e \u0435\u0441\u0442\u044c, \u043c\u0430\u0441\u0441\u0438\u0432 \u0432\u044c\u044e\u0448\u0435\u043a \u0412\u044b \u0442\u0430\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043d\u0435 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0435, \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u044b\u0442\u0430\u0439\u0442\u0435\u0441\u044c. \u041d\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u0432\u043e\u0438 \u0442\u0438\u043f\u044b \u043c\u043e\u0436\u0435\u0442\u0435: \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b NSCoding \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c NSData \u0438\u0437 \u0441\u0432\u043e\u0435\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e NSKeyedArchiver. \u0410 \u0443\u0436 NSData \u0438 \u0432 \u043f\u043b\u0438\u0441\u0442\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043b\u0435\u0433\u043a\u043e. \u041e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043c\u0435\u0442\u043e\u0434 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0434\u0435\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0432\u043e\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u044f \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0412\u0430\u043c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442. \u0414\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043b\u0438\u0441\u0442\u044b \u0447\u0430\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u044e\u0442 \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u043c\u0438, \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044f\u0442 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442 bplist (<b>B<\/b>inary <b>Plist<\/b>), \u0447\u0442\u043e \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u0438\u0445 \u0443\u0434\u043e\u0431\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u043e \u043d\u0443\u043b\u044f. \u041d\u043e \u043d\u0435 \u0440\u0430\u0441\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u0441\u044f: Xcode \u0443\u043c\u0435\u0435\u0442 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0438 \u0442\u0430\u043a\u0438\u0435 \u043f\u043b\u0438\u0441\u0442\u044b, \u043d\u043e \u0435\u0441\u043b\u0438 \u0412\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u0441\u0451 \u0436 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 XML \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435, \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0435\u0433\u043a\u043e \u043f\u0435\u0440\u0435\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u043f\u043b\u0438\u0441\u0442 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438: <code>plutil -convert xml1 MyFile.plist<\/code>. \u041a\u0441\u0442\u0430\u0442\u0438, <code>plutil<\/code> \u0443\u043c\u0435\u0435\u0442 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043b\u0438\u0441\u0442 \u0435\u0449\u0451 \u0438 \u0432 JSON, \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u043c\u0443-\u043b\u0438\u0431\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f, \u043d\u043e \u043b\u0438\u0447\u043d\u043e \u044f \u044d\u0442\u0438\u043c \u043d\u0438 \u0440\u0430\u0437\u0443 \u043d\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f.<\/p>\n<p>  \u041e\u0447\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e \u0441 \u043f\u043b\u0438\u0441\u0442\u0430\u043c\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c NSUserDefaults, \u043f\u0443\u0441\u0442\u044c \u0434\u0430\u0436\u0435 \u043e\u043d \u043e\u0431 \u044d\u0442\u043e\u043c \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u0438 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442. \u042d\u0442\u043e\u0442 \u043a\u043b\u0430\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u0445\u0440\u0430\u043d\u0438\u043c\u044b\u043c\u0438 \u0432 ~\/Library\/Preferences\/com.yourcompany.yourapp.plist (\u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u043a\u0441\u0442\u0430\u0442\u0438, \u043e\u0431\u044b\u0447\u043d\u043e \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439, \u0442\u043e \u0435\u0441\u0442\u044c, bplist), \u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u0444\u0430\u0439\u043b\u043e\u043c \u043d\u0435\u043b\u044c\u0437\u044f. \u041d\u043e \u0432\u0435\u0434\u044c \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438 \u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u043b\u0438\u0441\u0442\u044b, \u043d\u0435 \u0442\u0430\u043a \u043b\u0438? \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 <code>NSPropertyListSerialization<\/code>, \u0437\u0430\u0431\u043e\u0442\u043b\u0438\u0432\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u0430\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 Cocoa.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0447\u0442\u043e \u0436\u0435 \u0443\u043c\u0435\u0435\u0442 \u044d\u0442\u043e\u0442 \u043a\u043b\u0430\u0441\u0441? \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043e\u043d \u0443\u043c\u0435\u0435\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c NSDictionary \u0438 NSArray \u0432 NSData, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u043d\u0430\u0448 plist. \u0418, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043e\u043d \u0443\u043c\u0435\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f: \u0438\u0437 NSData \u0432 NSDictionary \u0438\u043b\u0438 NSArray.<\/p>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440: \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u043b\u043e\u0432\u0430\u0440\u0438\u043a \u0441 \u043a\u0443\u0447\u0435\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 (\u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445) \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u0432\u043e \u0447\u0442\u043e \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f.<\/p>\n<pre><code class=\"objectivec\">- (IBAction)savePlist:(id)sender { \tNSMutableDictionary *root = [NSMutableDictionary dictionary]; \t[root setObject:@YES forKey:@&quot;autosave&quot;]; \t[root setObject:@&quot;hello&quot; forKey:@&quot;greet-text&quot;]; \t[root setObject:@&quot;4F4@@&quot; forKey:@&quot;identifier&quot;]; \tNSMutableArray *elements = [NSMutableArray array]; \t[elements addObject:@&quot;one&quot;]; \t[elements addObject:@&quot;two&quot;]; \t[elements addObject:@&quot;thee&quot;]; \t[root setObject:elements forKey:@&quot;elements&quot;]; \tNSMutableArray *subs = [NSMutableArray array]; \tfor (NSInteger i = 0; i &lt; 10; i++) \t{ \t\tNSMutableDictionary *dict = [NSMutableDictionary dictionary]; \t\t[dict setObject:[NSString stringWithFormat:@&quot;John %ld&quot;, i] forKey:@&quot;name&quot;]; \t\t[dict setObject:[NSString stringWithFormat:@&quot;Moscow %ld&quot;, i] forKey:@&quot;city&quot;]; \t\t[dict setObject:[NSNumber numberWithInteger:i] forKey:@&quot;id&quot;]; \t\t[subs addObject:dict]; \t} \t[root setObject:subs forKey:@&quot;subs&quot;]; \tNSLog(@&quot;saving data:\\n%@&quot;, root); \tNSError *error = nil; \tNSData *representation = [NSPropertyListSerialization dataWithPropertyList:root format:NSPropertyListXMLFormat_v1_0 options:0 error:&error]; \tif (!error) \t{ \t\tBOOL ok = [representation writeToFile:self.plistFileName atomically:YES]; \t\tif (ok) \t\t{ \t\t\tNSLog(@&quot;ok!&quot;); \t\t} \t\telse \t\t{ \t\t\tNSLog(@&quot;error writing to file: %@&quot;, self.plistFileName); \t\t} \t} \telse \t{ \t\tNSLog(@&quot;error: %@&quot;, error); \t} } <\/code><\/pre>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u0447\u0442\u043e \u0431\u044b \u0435\u0433\u043e \u0435\u0449\u0451 \u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0431\u0443\u0434\u0435\u0442 \u043f\u043b\u0438\u0441\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u0432\u0438\u0434\u0430:<\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;!DOCTYPE plist PUBLIC &quot;-\/\/Apple\/\/DTD PLIST 1.0\/\/EN&quot; &quot;http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd&quot;&gt; &lt;plist version=&quot;1.0&quot;&gt; &lt;dict&gt; \t&lt;key&gt;autosave&lt;\/key&gt; \t&lt;true\/&gt; \t&lt;key&gt;elements&lt;\/key&gt; \t&lt;array&gt; \t\t&lt;string&gt;one&lt;\/string&gt; \t\t&lt;string&gt;two&lt;\/string&gt; \t\t&lt;string&gt;thee&lt;\/string&gt; \t&lt;\/array&gt; \t&lt;key&gt;greet-text&lt;\/key&gt; \t&lt;string&gt;hello&lt;\/string&gt; \t&lt;key&gt;identifier&lt;\/key&gt; \t&lt;string&gt;4F4@@&lt;\/string&gt; \t&lt;key&gt;subs&lt;\/key&gt; \t&lt;array&gt; \t\t&lt;dict&gt; \t\t\t&lt;key&gt;city&lt;\/key&gt; \t\t\t&lt;string&gt;Moscow 0&lt;\/string&gt; \t\t\t&lt;key&gt;id&lt;\/key&gt; \t\t\t&lt;integer&gt;0&lt;\/integer&gt; \t\t\t&lt;key&gt;name&lt;\/key&gt; \t\t\t&lt;string&gt;John 0&lt;\/string&gt; \t\t&lt;\/dict&gt; \t\t&lt;dict&gt; \t\t\t&lt;key&gt;city&lt;\/key&gt; \t\t\t&lt;string&gt;Moscow 1&lt;\/string&gt; \t\t\t&lt;key&gt;id&lt;\/key&gt; \t\t\t&lt;integer&gt;1&lt;\/integer&gt; \t\t\t&lt;key&gt;name&lt;\/key&gt; \t\t\t&lt;string&gt;John 1&lt;\/string&gt; \t\t&lt;\/dict&gt; \t\t&lt;!-- \u0442\u0443\u0442 \u0435\u0449\u0451 \u043c\u043d\u043e\u0433\u043e --&gt; \t&lt;\/array&gt; &lt;\/dict&gt; &lt;\/plist&gt; <\/code><\/pre>\n<p>  \u0427\u0442\u043e, \u043f\u0440\u043e\u0441\u0442\u043e? \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e! \u0418 \u0434\u0430\u0436\u0435 XML \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0434\u043e\u0431\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0439. \u0410 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0435\u0449\u0451 \u0438 \u0441\u0432\u0430\u043b\u0438\u0442\u0441\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u0438\u043a\u0430:<\/p>\n<pre><code class=\"javascript\">{     autosave = 1;     elements =     (         one,         two,         thee     );     &quot;greet-text&quot; = hello;     identifier = &quot;4F4@@&quot;;     subs =     (                 {             city = &quot;Moscow 0&quot;;             id = 0;             name = &quot;John 0&quot;;         },                 {             city = &quot;Moscow 1&quot;;             id = 1;             name = &quot;John 1&quot;;         }     ); } <\/code><\/pre>\n<p>  \u041d\u0435\u043f\u043b\u043e\u0445\u043e.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u0439 \u043d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043f\u043b\u0438\u0441\u0442:<\/p>\n<pre><code class=\"objectivec\">- (IBAction)loadPlist:(id)sender { \tNSData *plistData = [NSData dataWithContentsOfFile:self.plistFileName]; \tif (!plistData) \t{ \t\tNSLog(@&quot;error reading from file: %@&quot;, self.plistFileName); \t\treturn; \t} \tNSPropertyListFormat format; \tNSError *error = nil; \tid plist = [NSPropertyListSerialization propertyListWithData:plistData options:NSPropertyListMutableContainersAndLeaves format:&format error:&error]; \tif (!error) \t{ \t\tNSMutableDictionary *root = plist; \t\tNSLog(@&quot;loaded data:\\n%@&quot;, root); \t} \telse \t{ \t\tNSLog(@&quot;error: %@&quot;, error); \t} } <\/code><\/pre>\n<p>  \u0418 \u0447\u0442\u043e \u0436\u0435 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c? \u041d\u0443 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435! \u041c\u044b \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0442\u043e\u0442 \u0436\u0435 \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u044b\u0439 JSON-\u0447\u0438\u043a, \u0447\u0442\u043e \u0438 \u043f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438! \u041f\u0440\u0430\u0432\u0434\u0430, \u043d\u0435\u0442 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0439, \u0447\u0442\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u0438\u043c \u0436\u0435: \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 NSDictionary \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d. \u041d\u043e \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043d\u0430 \u043c\u0435\u0441\u0442\u0435.<\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438 \u0433\u043e\u0432\u043e\u0440\u044f, \u043c\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b\u0438 \u043d\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0432\u0438\u0434\u0435 \u00abmutable\u00bb \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u0430 \u0447\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0444\u043b\u0430\u0433 <code>NSPropertyListMutableContainersAndLeaves<\/code>. \u0415\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 <code>NSPropertyListImmutable<\/code>, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0431\u044b \u043d\u0435 NSMutableDictionary, \u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 NSDictionary, \u0442\u0430\u043a \u0447\u0442\u043e \u0442\u0443\u0442 \u0435\u0441\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0440 \u0434\u043b\u044f \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0438 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u0427\u0442\u043e \u0436, \u0432 \u044d\u0442\u043e\u043c \u0443\u0440\u043e\u043a\u0435 \u043c\u044b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c \u0441 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u043c PLIST \u0438 \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0442\u0430\u043a\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Cocoa. \u041f\u043e\u043b\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438, \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430, \u043d\u0430 <a href=\"https:\/\/github.com\/silvansky\/PlistDemo\">\u0433\u0438\u0442\u0445\u0430\u0431\u0435<\/a>.<\/p>\n<p>  \u0423\u0434\u0430\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0438\u043d\u0433\u0430!    \t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/158727\/\"> http:\/\/habrahabr.ru\/post\/158727\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0445\u0430\u0431\u0440\u0430\u0434\u043d\u044f!<\/p>\n<p>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0430\u0441\u043f\u0435\u043a\u0442\u0430\u0445 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432 OS X \u0438\/\u0438\u043b\u0438 iOS. \u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432: Core Data, \u00ab\u0433\u043e\u043b\u044b\u0439\u00bb SQLite, \u0441\u0432\u043e\u0438 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b, \u0441\u0432\u043e\u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b, NSUserDefaults \u0438, \u043a\u0430\u043a \u0412\u044b \u0443\u0436\u0435 \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0441\u043b\u044b\u0448\u0430\u043b\u0438, \u0444\u0430\u0439\u043b\u044b \u0442\u0438\u043f\u0430 <b>PLIST<\/b>, \u0442\u043e \u0435\u0441\u0442\u044c XML <b>P<\/b>roperty <b>List<\/b>.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/b5e\/75e\/6ae\/b5e75e6ae9706cdc2a829f7e3ef9f84c.png\"\/><br \/>  \u0412\u043a\u0440\u0430\u0442\u0446\u0435, plist-\u0444\u0430\u0439\u043b\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u0439 XML, \u043d\u043e \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0430\u043c\u0438. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0442\u0435\u0433\u043e\u0432 \u0432 \u043d\u0451\u043c \u043e\u0431\u0443\u0441\u043b\u043e\u0432\u043b\u0435\u043d \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438: \u043e\u043d\u0438 \u0438\u0434\u0443\u0442 \u043f\u0430\u0440\u0430\u043c\u0438 \u00ab\u043a\u043b\u044e\u0447-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00bb, \u043d\u043e \u0442\u0435\u0433\u0438 \u0442\u0438\u043f\u0430 \u00ab\u043a\u043b\u044e\u0447\u00bb \u0438 \u0442\u0435\u0433\u0438 \u0442\u0438\u043f\u0430 \u00ab\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00bb \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435. \u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"xml\">\t&lt;key&gt;identifier&lt;\/key&gt; \t&lt;string&gt;j3qq4-h7h2v&lt;\/string&gt; <\/code><\/pre>\n<p>  \u041f\u043b\u0438\u0441\u0442\u044b \u0443\u043c\u0435\u044e\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 Cocoa: NSString, NSNumber (int, float, BOOL), NSDate, NSArray, NSDictionary \u0438 NSData. \u042d\u0442\u0438\u043c \u0442\u0438\u043f\u0430\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0435\u0433\u0438: <code>&lt;string&gt;, &lt;integer&gt;, &lt;real&gt;, &lt;true\/&gt;, &lt;false\/&gt;, &lt;date&gt;, &lt;array&gt;, &lt;dict&gt;, &lt;data&gt;<\/code>. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, plist \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0442\u0435\u0433\u043e\u0432 <code>&lt;key&gt;<\/code>, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0442\u0435\u0433\u0438 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c.<\/p>\n<p>  \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u2014 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u0438, \u0447\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435, API \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-158727","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/158727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=158727"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/158727\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=158727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=158727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}