{"id":230079,"date":"2014-07-17T10:11:03","date_gmt":"2014-07-17T06:11:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=230079"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=230079","title":{"rendered":"<span class=\"post_title\">\u0417\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 JSON<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h4>\u0417\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 JSON<\/h4>\n<p>  \u0412 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043c\u043e\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 <a href=\"http:\/\/json.org\/json-ru.html\">JSON<\/a>. \u0412\u043a\u0440\u0430\u0442\u0446\u0435 \u2014 XML-\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442, \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u0437\u0430\u043c\u0435\u043d\u0443 Windows INI-\u0444\u0430\u0439\u043b\u0430\u043c \u0438\u043b\u0438 \u0442\u043e\u043c\u0443 \u0436\u0435 XML. \u0423\u0434\u043e\u0431\u0435\u043d \u0442\u0435\u043c, \u0447\u0442\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0437\u0430\u043c\u0443\u0441\u043e\u0440\u0438\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0432\u043e\u0438\u043c\u0438 \u0442\u0435\u0433\u0430\u043c\u0438 \u0434\u043e \u043f\u043e\u043b\u043d\u043e\u0439 \u043d\u0435\u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445:  <\/p>\n<pre><code class=\"cpp\">{   &quot;Comment&quot;:&quot;My comment&quot;,   &quot;Count&quot;:10,   &quot;DiskParam&quot;:   {     &quot;DB&quot;:10.000000,     &quot;DBAngle&quot;:1.234000   },   &quot;Range&quot;:true,   &quot;Blades&quot;:   [     {       &quot;Caption&quot;:&quot;A&quot;,       &quot;Value&quot;:65     },     {       &quot;Caption&quot;:&quot;B&quot;,       &quot;Value&quot;:66     },     {       &quot;Caption&quot;:&quot;C&quot;,       &quot;Value&quot;:67     }   ],   &quot;Slots&quot;:   [     0,1,2   ] }<\/code><\/pre>\n<p>  \u0424\u043e\u0440\u043c\u0430\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u0432\u043f\u043e\u043b\u043d\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043d\u0438\u043c \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0437\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u043e\u0442\u0432\u0435\u0447\u0430\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043a\u043e\u0434\u0430:  <\/p>\n<pre><code class=\"cpp\">    fprintf(pOut, &quot;{\\n&quot;);       fprintf(pOut, &quot;  \\&quot;Comment\\&quot;:\\&quot;%s\\&quot;&quot;, Header-&gt;Comment);       fprintf(pOut, &quot;,\\n  \\&quot;NumSt\\&quot;:%d&quot;, Header-&gt;NumSt);       \/\/\u041f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430       fprintf(pOut, &quot;,\\n  \\&quot;DBMax\\&quot;:%lf&quot;, Header-&gt;DBMax);       fprintf(pOut, &quot;,\\n  \\&quot;Range\\&quot;:%s&quot;, Header-&gt;Range?&quot;true&quot;:&quot;false&quot;);              fprintf(pOut, &quot;,\\n  \\&quot;Blades\\&quot;:\\n  [&quot;);       for(int i=0; i&lt;Header-&gt;Count; i++)       {         TElement &e=Element[i];         fprintf(pOut, i?&quot;,\\n    {&quot;:&quot;\\n    {&quot;);           fprintf(pOut, &quot;\\&quot;Caption\\&quot;:\\&quot;%s\\&quot;&quot;, e.Caption);           fprintf(pOut, &quot;,\\&quot;Value\\&quot;:%lf&quot;, e.BaseChar);         fprintf(pOut, &quot;}&quot;);       }       fprintf(pOut, &quot;\\n  ]&quot;);       \/\/\u041f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430     fprintf(pOut, &quot;\\n}&quot;);<\/code><\/pre>\n<p>  \u041a\u043e\u0440\u044f\u0432\u0435\u043d\u044c\u043a\u043e, \u0445\u043e\u0442\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e. \u041d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0434\u043e\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0430\u0441\u044c, \u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u043d\u044f\u043b\u0441\u044f \u043f\u043e 5 \u0440\u0430\u0437 \u043d\u0430 \u0434\u043d\u044e \u0438 \u043e\u0441\u0442\u0440\u043e \u0432\u0441\u0442\u0430\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430 \u0431\u044b\u043b\u043e \u0442\u044f\u0436\u0435\u043b\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0442\u0435\u0433 \u0438\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0436\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0444\u0430\u0439\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. \u0414\u0430\u0436\u0435 \u0432 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435 \u043f\u0435\u0440\u0435\u0434 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0430\u0441\u044c \u043e\u0448\u0438\u0431\u043a\u0430, \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u0437\u0430\u043f\u044f\u0442\u0430\u044f \u043c\u0435\u0436\u0434\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430. <\/p>\n<p>  \u0420\u0435\u0448\u0438\u043b \u044f \u044d\u0442\u043e\u0442 \u0442\u0435\u0445\u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043b\u0435\u0433\u043a\u0430 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u0438\u043a\u0440\u043e\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 JSON.<br \/>  <a name=\"habracut\"><\/a> <br \/>  \u0427\u0442\u043e \u044f \u0445\u043e\u0442\u0435\u043b? \u0427\u0442\u043e\u0431\u044b \u0432 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u044f \u043f\u0438\u0441\u0430\u043b \u0447\u0442\u043e-\u0442\u043e \u043d\u0430 \u043f\u0441\u0435\u0432\u0434\u043e\u044f\u0437\u044b\u043a\u0435:  <\/p>\n<pre><code class=\"cpp\">Key(&quot;\u041a\u043b\u044e\u04471&quot;); Value(&quot;\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u04351&quot;); Key(&quot;\u041a\u043b\u044e\u04472&quot;); Value(&quot;\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u04352&quot;); Object(&quot;\u041e\u0431\u044a\u0435\u043a\u04421&quot;);   Key(&quot;\u041a\u043b\u044e\u04473&quot;); Value(&quot;\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u04353&quot;); \/\/\u041a\u043b\u044e\u04473,\u041a\u043b\u044e\u04474 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u041e\u0431\u044a\u0435\u043a\u04421   Key(&quot;\u041a\u043b\u044e\u04474&quot;); Value(&quot;\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u04354&quot;); Array(&quot;\u041c\u0430\u0441\u0441\u0438\u04321&quot;);   Key(&quot;\u041a\u043b\u044e\u04475&quot;); Value(&quot;\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u04355&quot;); \/\/\u041a\u043b\u044e\u04475...\u041a\u043b\u044e\u0447N \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u041c\u0430\u0441\u0441\u0438\u04321   Key(&quot;\u041a\u043b\u044e\u04476&quot;); Value(&quot;\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u04356&quot;);   ...   Key(&quot;\u041a\u043b\u044e\u0447N&quot;); Value(&quot;\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435N&quot;);<\/code><\/pre>\n<p>  \u0410 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\/\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0443\u0441\u0442\u044c \u0441\u0430\u043c\u0438 \u0443\u0447\u0442\u0443\u0442 \u043e\u0442\u0441\u0442\u0443\u043f\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0444\u0430\u0439\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. \u0412 \u043d\u0443\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u044f\u0442 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0438, \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0442\u0435\u0433. \u0414\u0435\u043b\u043e \u043e\u0441\u043b\u043e\u0436\u043d\u044f\u043b\u043e\u0441\u044c \u0442\u0435\u043c, \u0447\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 C++, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0446\u0438\u043a\u043b\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0434\u043d\u0435\u0439 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e\u0439 \u043c\u043e\u0437\u0433\u043e\u0432\u043e\u0439 \u043e\u0441\u0430\u0434\u044b \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0438\u0437\u044f\u0449\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u0414\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0437\u0430 \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0430 JSON-\u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439 \u0438 \u0441\u0432\u043e\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u044f \u0442\u0435\u0433\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445. \u0412\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e, \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 TJson*** \u2014 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043b\u044e\u0447 \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0442\u0435\u0433 \u0438 \u0432\u0441\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u0435\u0433\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438. \u0423\u043d\u0438\u0447\u0442\u043e\u0436\u0430\u0435\u0442\u0441\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u2014 \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0442\u0435\u0433.  <\/p>\n<pre><code class=\"cpp\">#define TCF_USED   1  class TTagCloser { public:   TTagCloser *Owner;   static TTagCloser *Current;   static int Depth;   int Flags;   int Count;   int operator()(){Flags^=TCF_USED; return Flags&TCF_USED;}   TTagCloser(){Count=Flags=0; Owner=Current; Current=this; Depth++;}   ~TTagCloser(){Depth--; Current=Owner;} }; TTagCloser *TTagCloser::Current=NULL; int TTagCloser::Depth=-1;<\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u043a\u043b\u0430\u0441\u0441, \u0432\u0441\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u2014 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u043f\u043e\u0440\u043e\u0436\u0434\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0432 \u043d\u0435\u043a\u043e\u0435 \u043f\u043e\u0434\u043e\u0431\u0438\u0435 \u0434\u0435\u0440\u0435\u0432\u0430. \u0414\u043b\u044f \u0447\u0435\u0433\u043e \u043d\u0443\u0436\u0435\u043d \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0439 operator() \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435.<\/p>\n<p>  \u0423 \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0435\u0441\u0442\u044c \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u043b\u043e\u0436\u0435\u043d \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 JSON-\u0444\u043e\u0440\u043c\u0430\u0442\u0435. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 Write***.   <\/p>\n<pre><code class=\"cpp\">#define TCF_OBJECT 4 #define TCF_ARRAY  2  class TJsonTagCloser:public TTagCloser { public:   void WriteTab();   void WriteInt(int);   void WriteDouble(double);   void WriteStr(char *);    TJsonTagCloser(char *Key); }; \/\/---------------------------------------------------------------------------- TJsonTagCloser::TJsonTagCloser(char *Key):TTagCloser() {   if(Owner)   {     if(Owner-&gt;Count)       WriteStr(&quot;,&quot;);     if(Owner-&gt;Flags&TCF_ARRAY)     {       if(!Owner-&gt;Count)         WriteTab();     }     else      {       WriteTab();       WriteStr(&quot;\\&quot;&quot;);       if(Key)         WriteStr(Key);       WriteStr(&quot;\\&quot;:&quot;);     }     Owner-&gt;Count++;   } }<\/code><\/pre>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f WriteTab() \u0432\u0432\u0435\u0434\u0435\u043d\u0430 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0433\u0438\u043a\u043e\u0432, \u043b\u044e\u0431\u044f\u0449\u0438\u0445 \u043b\u0430\u0437\u0438\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u00ab\u0411\u043b\u043e\u043a\u043d\u043e\u0442\u043e\u043c\u00bb. \u041e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0444\u0430\u0439\u043b \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0447\u0438\u0441\u043b\u043e \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0433\u043b\u0443\u0431\u0438\u043d\u0435 \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u044f (TTagCloser::Depth). \u0415\u0441\u043b\u0438 \u0431\u044b \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0443\u0436\u043d\u043e, \u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u044b\u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0431\u044b \u0432 WriteTab(){;}.<\/p>\n<p>  \u0423 \u043c\u0435\u043d\u044f \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 Write*** \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"cpp\">#include &lt;stdio.h&gt; void TJsonTagCloser::WriteTab(){printf(&quot;\\n%*s&quot;, Depth*2, &quot;&quot;);} void TJsonTagCloser::WriteInt(int Value){printf(&quot;%d&quot;, Value);} void TJsonTagCloser::WriteDouble(double Value){printf(&quot;%lf&quot;, Value);} void TJsonTagCloser::WriteStr(char *Value){printf(&quot;%s&quot;, Value);}<\/code><\/pre>\n<p>  JSON-\u0444\u043e\u0440\u043c\u0430\u0442 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432 \u043f\u043e\u0442\u043e\u043a\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u041e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 (\u0441\u043c\u0430\u0445\u0438\u0432\u0430\u044e\u0442 \u043d\u0430 \u0421\u0418\u0448\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b), \u041c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 (\u043e\u043d\u0438 \u0438 \u0432 \u0410\u0444\u0440\u0438\u043a\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b) \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0430\u0440 \u00ab\u041a\u043b\u044e\u0447: \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00bb. \u0412\u0441\u0435 \u044d\u0442\u043e \u043c\u043d\u043e\u0433\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u0448\u0430\u043d\u043e \u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043e \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0436\u043a\u0443, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u043f\u0430\u0440\u0435 \u00ab\u041a\u043b\u044e\u0447: \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00bb \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u041c\u0430\u0441\u0441\u0438\u0432 \u041e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u044b:  <\/p>\n<pre><code class=\"cpp\">class TJsonArray:public TJsonTagCloser { public:   TJsonArray(char *Key);   ~TJsonArray(); }; class TJsonObject:public TJsonTagCloser { public:   TJsonObject(char *Key);   ~TJsonObject(); }; class TJsonValue:public TJsonTagCloser { public:   TJsonValue(char *Key, int    Value):TJsonTagCloser(Key){WriteInt   (Value);}   TJsonValue(char *Key, double Value):TJsonTagCloser(Key){WriteDouble(Value);}   TJsonValue(char *Key, bool   Value):TJsonTagCloser(Key){WriteStr((char *)(Value?&quot;true&quot;:&quot;false&quot;));}   TJsonValue(char *Key, char  *Value); }; TJsonArray::TJsonArray(char *Key):TJsonTagCloser(Key) {   Flags|=TCF_ARRAY;    if(Owner && (!(Owner-&gt;Flags&TCF_ARRAY) || Owner-&gt;Count&gt;1))     WriteTab();    WriteStr(&quot;[&quot;); } TJsonArray::~TJsonArray() {   WriteTab();   WriteStr(&quot;]&quot;); } \/\/---------------------------------------------------------------------------- TJsonObject::TJsonObject(char *Key):TJsonTagCloser(Key) {   Flags|=TCF_OBJECT;   if(Owner && (!(Owner-&gt;Flags&TCF_ARRAY) || Owner-&gt;Count&gt;1))     WriteTab();   WriteStr(&quot;{&quot;); } TJsonObject::~TJsonObject() {   WriteTab();   WriteStr(&quot;}&quot;); } TJsonValue::TJsonValue(char *Key, char *Value):TJsonTagCloser(Key) {   if(Value)   {     WriteStr(&quot;\\&quot;&quot;);      WriteStr(Value);      WriteStr(&quot;\\&quot;&quot;);   }   else     WriteStr(&quot;null&quot;); }<\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0432 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u043c\u0430\u043a\u0440\u043e\u0441\u044b:  <\/p>\n<pre><code class=\"cpp\">#define ARRAY(k)   for(TJsonArray  array(k);  array();) #define OBJECT(k)  for(TJsonObject object(k); object();) #define VALUE(k,v) {TJsonValue value(k,v);}<\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0438 \u0434\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c \u0434\u043e \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0433\u043e operator(). \u041e\u043d \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u043a\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0435\u043b\u0430 \u0446\u0438\u043a\u043b\u0430 for, \u0442\u043e \u0435\u0441\u0442\u044c \u0432 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u043e\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 true, \u0430 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u2014 false.<\/p>\n<p>  \u0410 \u0432\u043e\u0442 \u0442\u0430\u043a \u0432 \u0442\u0435\u043b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043a\u0440\u0438\u043f\u0442, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445:  <\/p>\n<pre><code class=\"cpp\">void main() {   OBJECT(&quot;TrashKey&quot;) \/\/\u041a\u043b\u044e\u0447 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043e\u0447\u043d\u043e \u0437\u0430\u0434\u0430\u043d   {     VALUE(&quot;Comment&quot;, &quot;My comment&quot;);     VALUE(&quot;Count&quot;,   10);     OBJECT(&quot;DiskParam&quot;)     {       VALUE(&quot;DB&quot;,      10.0);       VALUE(&quot;DBAngle&quot;, 1.234);     }     VALUE(&quot;Range&quot;,   true);     ARRAY(&quot;Blades&quot;)     {       for(int i='A'; i&lt;'A'+3; i++)         OBJECT(&quot;TrashKey&quot;) \/\/\u0412\u043d\u0443\u0442\u0440\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043a\u043b\u044e\u0447 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043e\u0447\u043d\u043e \u0437\u0430\u0434\u0430\u043d         {           VALUE(&quot;Caption&quot;, (char *)&i); \/\/!!\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e-\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0439 \u043a\u043e\u0434           VALUE(&quot;Value&quot;,   i);         }     }     ARRAY(&quot;Slots&quot;)       for(int i=0; i&lt;3; i++)         VALUE(&quot;&quot;, i);   } }<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 JSON-\u0444\u0430\u0439\u043b \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438. \u0412\u0441\u0435 \u0437\u0430\u043f\u044f\u0442\u044b\u0435 \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b, \u0432\u0441\u0435 \u0441\u043a\u043e\u0431\u043e\u0447\u043a\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u044b \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e, \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043d\u0443\u0436\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0435\u0434\u0443\u0449\u0438\u0445 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u2014 \u043a\u0440\u0430\u0441\u043e\u0442\u0430! \t\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\/230079\/\"> http:\/\/habrahabr.ru\/post\/230079\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h4>\u0417\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 JSON<\/h4>\n<p>  \u0412 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043c\u043e\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 <a href=\"http:\/\/json.org\/json-ru.html\">JSON<\/a>. \u0412\u043a\u0440\u0430\u0442\u0446\u0435 \u2014 XML-\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442, \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u0437\u0430\u043c\u0435\u043d\u0443 Windows INI-\u0444\u0430\u0439\u043b\u0430\u043c \u0438\u043b\u0438 \u0442\u043e\u043c\u0443 \u0436\u0435 XML. \u0423\u0434\u043e\u0431\u0435\u043d \u0442\u0435\u043c, \u0447\u0442\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0437\u0430\u043c\u0443\u0441\u043e\u0440\u0438\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0432\u043e\u0438\u043c\u0438 \u0442\u0435\u0433\u0430\u043c\u0438 \u0434\u043e \u043f\u043e\u043b\u043d\u043e\u0439 \u043d\u0435\u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445:  <\/p>\n<pre><code class=\"cpp\">{   &quot;Comment&quot;:&quot;My comment&quot;,   &quot;Count&quot;:10,   &quot;DiskParam&quot;:   {     &quot;DB&quot;:10.000000,     &quot;DBAngle&quot;:1.234000   },   &quot;Range&quot;:true,   &quot;Blades&quot;:   [     {       &quot;Caption&quot;:&quot;A&quot;,       &quot;Value&quot;:65     },     {       &quot;Caption&quot;:&quot;B&quot;,       &quot;Value&quot;:66     },     {       &quot;Caption&quot;:&quot;C&quot;,       &quot;Value&quot;:67     }   ],   &quot;Slots&quot;:   [     0,1,2   ] }<\/code><\/pre>\n<p>  \u0424\u043e\u0440\u043c\u0430\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u0432\u043f\u043e\u043b\u043d\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043d\u0438\u043c \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0437\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u043e\u0442\u0432\u0435\u0447\u0430\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043a\u043e\u0434\u0430:  <\/p>\n<pre><code class=\"cpp\">    fprintf(pOut, &quot;{\\n&quot;);       fprintf(pOut, &quot;  \\&quot;Comment\\&quot;:\\&quot;%s\\&quot;&quot;, Header-&gt;Comment);       fprintf(pOut, &quot;,\\n  \\&quot;NumSt\\&quot;:%d&quot;, Header-&gt;NumSt);       \/\/\u041f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430       fprintf(pOut, &quot;,\\n  \\&quot;DBMax\\&quot;:%lf&quot;, Header-&gt;DBMax);       fprintf(pOut, &quot;,\\n  \\&quot;Range\\&quot;:%s&quot;, Header-&gt;Range?&quot;true&quot;:&quot;false&quot;);              fprintf(pOut, &quot;,\\n  \\&quot;Blades\\&quot;:\\n  [&quot;);       for(int i=0; i&lt;Header-&gt;Count; i++)       {         TElement &#038;e=Element[i];         fprintf(pOut, i?&quot;,\\n    {&quot;:&quot;\\n    {&quot;);           fprintf(pOut, &quot;\\&quot;Caption\\&quot;:\\&quot;%s\\&quot;&quot;, e.Caption);           fprintf(pOut, &quot;,\\&quot;Value\\&quot;:%lf&quot;, e.BaseChar);         fprintf(pOut, &quot;}&quot;);       }       fprintf(pOut, &quot;\\n  ]&quot;);       \/\/\u041f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430     fprintf(pOut, &quot;\\n}&quot;);<\/code><\/pre>\n<p>  \u041a\u043e\u0440\u044f\u0432\u0435\u043d\u044c\u043a\u043e, \u0445\u043e\u0442\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e. \u041d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0434\u043e\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0430\u0441\u044c, \u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u043d\u044f\u043b\u0441\u044f \u043f\u043e 5 \u0440\u0430\u0437 \u043d\u0430 \u0434\u043d\u044e \u0438 \u043e\u0441\u0442\u0440\u043e \u0432\u0441\u0442\u0430\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430 \u0431\u044b\u043b\u043e \u0442\u044f\u0436\u0435\u043b\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0442\u0435\u0433 \u0438\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0436\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0444\u0430\u0439\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. \u0414\u0430\u0436\u0435 \u0432 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435 \u043f\u0435\u0440\u0435\u0434 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0430\u0441\u044c \u043e\u0448\u0438\u0431\u043a\u0430, \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u0437\u0430\u043f\u044f\u0442\u0430\u044f \u043c\u0435\u0436\u0434\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430. <\/p>\n<p>  \u0420\u0435\u0448\u0438\u043b \u044f \u044d\u0442\u043e\u0442 \u0442\u0435\u0445\u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043b\u0435\u0433\u043a\u0430 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u0438\u043a\u0440\u043e\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 JSON.  <\/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-230079","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/230079","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=230079"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/230079\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=230079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=230079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=230079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}