{"id":3103,"date":"2013-11-19T12:07:46","date_gmt":"2013-11-19T03:07:46","guid":{"rendered":"http:\/\/ddolgi.pe.kr\/blog\/?p=3103"},"modified":"2017-01-24T22:09:55","modified_gmt":"2017-01-24T13:09:55","slug":"c-%ec%9a%a9-json-parser-5%ec%a2%85-%ec%84%b1%eb%8a%a5-%eb%b9%84%ea%b5%90","status":"publish","type":"post","link":"http:\/\/ddolgi.pe.kr\/blog\/archives\/3103","title":{"rendered":"C++ \uc6a9 JSON parser 5\uc885 \uc131\ub2a5 \ube44\uad50"},"content":{"rendered":"<p>libmongoclient\uc758\u00a0JSON parser\ub97c \uc4f0\ub2e4\uac00\u00a0Array\uc5d0\u00a04096 \uac1c\ub77c\ub294 \uc81c\ud55c\uc774 \uc788\uc5b4\uc11c \ub2e4\ub978 JSON Parser\ub97c \ucc3e\uc544\ubd24\ub2e4.<\/p>\n<p>\uc18d\ub3c4\uc640 \ud3b8\ub9ac\uc131 \uc704\uc8fc\ub85c \uace0\ub974\ub2e4 \ubcf4\ub2c8 picojson, rapidjson, libjson, vjson \uc774\ub807\uac8c \ub137\uc774 \uc120\uc815\ub418\uc5c8\ub2e4.<\/p>\n<ul>\n<li>\uce21\uc815 \ubc29\ubc95:\u00a02\ub9cc\uc5ec JSON \ubb38\uc11c\ub97c\u00a0Parsing \ud6c4\u00a02\ucc28\uc6d0 \ubb38\uc790\uc5f4 \ubc30\uc5f4\uc744 stdout\uc73c\ub85c \ucd9c\ub825<\/li>\n<li>\uce21\uc815 \uae30\uc900: \uc2e4\ud589 \uc2dc\uac04 \uce21\uc815<\/li>\n<li>\uacb0\uacfc<\/li>\n<\/ul>\n<table class=\"txc-table\" style=\"height: 269px;\" border=\"0\" width=\"890\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>&nbsp;<\/td>\n<td>\uc2dc\uac04(\ubd84:\ucd08)<\/td>\n<td colspan=\"1\">\u00a0Destructive<\/td>\n<td colspan=\"1\">\u00a0Header-only<\/td>\n<td colspan=\"1\">\u00a0Writable<\/td>\n<td colspan=\"1\">\u00a0Modifiable<\/td>\n<\/tr>\n<tr>\n<td>\u00a0MongoDB<\/td>\n<td>\u00a03:02 (Parsing Failed:\u00a02797\/20072)<\/td>\n<td colspan=\"1\">\u00a0X<\/td>\n<td colspan=\"1\">\u00a0X<\/td>\n<td colspan=\"1\">\u00a0O<\/td>\n<td colspan=\"1\">\u00a0X<\/td>\n<\/tr>\n<tr>\n<td>\u00a0picojson<\/td>\n<td>\u00a06:18<\/td>\n<td colspan=\"1\">\u00a0X<\/td>\n<td colspan=\"1\">\u00a0O<\/td>\n<td colspan=\"1\">\u00a0X<\/td>\n<td colspan=\"1\">\u00a0X<\/td>\n<\/tr>\n<tr>\n<td>\u00a0libjson<\/td>\n<td>\u00a03:50<\/td>\n<td colspan=\"1\">\u00a0X<\/td>\n<td colspan=\"1\">\u00a0X<\/td>\n<td colspan=\"1\">\u00a0O<\/td>\n<td colspan=\"1\">\u00a0O<\/td>\n<\/tr>\n<tr>\n<td>\u00a0vjson<\/td>\n<td>\u00a01:45<\/td>\n<td colspan=\"1\">\u00a0O<\/td>\n<td colspan=\"1\">\u00a0X<\/td>\n<td colspan=\"1\">\u00a0X<\/td>\n<td colspan=\"1\">\u00a0X<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"1\">\u00a0rapidjson(destructive mode)<\/td>\n<td rowspan=\"1\">\u00a01:29<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u00a0Avail<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u00a0O<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u00a0O<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u00a0O<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\ubd84\uc11d:\u00a0rapidjson\uacfc vjson\uc740\u00a0\uc6d0\ubcf8\uc744 \ubcf5\uc0ac\ud558\uc9c0\u00a0\uc54a\uace0 \uc218\uc815\ud574\uc11c \ud30c\uc2f1\ud558\uae30 \ub54c\ubb38\uc5d0 \uac00\uc7a5 \ube68\ub790\ub2e4.<\/li>\n<\/ul>\n<div>vjson\uc744 \uc4f8 \uc218\ub3c4 \uc788\uaca0\uc9c0\ub9cc, \ub2e4\ub978 \ud504\ub85c\uadf8\ub7a8\uc758 MongoDB \ubaa8\ub4c8\uc744 \ubaa8\ub450 \ub300\uccb4\ud558\ub824\uba74 Write \uae30\ub2a5\uc774 \ud544\uc694\ud574\uc11c <b>rapidjson<\/b>\uc744 \ucd5c\uc885 \uc120\ud0dd\ud558\uc600\ub2e4.<\/div>\n<div><\/div>\n<div class=\"txc-moreless\" data-more=\"%EB%8D%94%20%EB%B3%B4%EA%B8%B0%3A%20%EB%8C%80%EC%B2%B4%20%EA%B2%B0%EA%B3%BC%20\" data-less=\"%EC%A0%91%EA%B8%B0\">\n<div>\ud55c \ud504\ub85c\uadf8\ub7a8(JSON parse\/modify\/write)\uc758 MongoDB \ubaa8\ub4c8\uc744 rapidjson\uc73c\ub85c \ub300\uccb4 \uacb0\uacfc<\/div>\n<div><\/div>\n<div>\n<table class=\"txc-table\" style=\"height: 131px;\" border=\"0\" width=\"460\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>&nbsp;<\/td>\n<td>\u00a0\uc804\uccb4 \uc2e4\ud589 \uc2dc\uac04<\/td>\n<td>\u00a0\ud30c\uc2f1 \uc18c\uc694\uc2dc\uac04<\/td>\n<\/tr>\n<tr>\n<td>\u00a0MongoDB<\/td>\n<td>\u00a01\ubd841\ucd08<\/td>\n<td>\u00a029\ucd08<\/td>\n<\/tr>\n<tr>\n<td>\u00a0rapidjson<\/td>\n<td>\u00a033\ucd08<\/td>\n<td>\u00a07\ucd08<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\ud30c\uc2f1 \uc2dc\uac04 \ubfd0 \uc544\ub2c8\ub77c write \uc2dc\uac04\ub3c4 \ub2e8\ucd95 \ub418\uc5c8\uc74c(Building new object -&gt;\u00a0Modifying).<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>libmongoclient\uc758\u00a0JSON parser\ub97c \uc4f0\ub2e4\uac00\u00a0Array\uc5d0\u00a04096 \uac1c\ub77c\ub294 \uc81c\ud55c\uc774 \uc788\uc5b4\uc11c \ub2e4\ub978 JSON Parser\ub97c \ucc3e\uc544\ubd24\ub2e4. \uc18d\ub3c4\uc640 \ud3b8\ub9ac\uc131 \uc704\uc8fc\ub85c \uace0\ub974\ub2e4 \ubcf4\ub2c8 picojson, rapidjson, libjson, vjson \uc774\ub807\uac8c \ub137\uc774 \uc120\uc815\ub418\uc5c8\ub2e4. \uce21\uc815 \ubc29\ubc95:\u00a02\ub9cc\uc5ec JSON \ubb38\uc11c\ub97c\u00a0Parsing \ud6c4\u00a02\ucc28\uc6d0 \ubb38\uc790\uc5f4 \ubc30\uc5f4\uc744 stdout\uc73c\ub85c \ucd9c\ub825 \uce21\uc815 \uae30\uc900: \uc2e4\ud589 \uc2dc\uac04 \uce21\uc815 \uacb0\uacfc &nbsp; \uc2dc\uac04(\ubd84:\ucd08) \u00a0Destructive \u00a0Header-only \u00a0Writable \u00a0Modifiable \u00a0MongoDB \u00a03:02 (Parsing Failed:\u00a02797\/20072) \u00a0X \u00a0X \u00a0O \u00a0X \u00a0picojson \u00a06:18 \u00a0X \u00a0O [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[275],"tags":[278,281],"class_list":["post-3103","post","type-post","status-publish","format-standard","hentry","category-275","tag-c","tag-281"],"_links":{"self":[{"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/posts\/3103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/comments?post=3103"}],"version-history":[{"count":1,"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/posts\/3103\/revisions"}],"predecessor-version":[{"id":3104,"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/posts\/3103\/revisions\/3104"}],"wp:attachment":[{"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/media?parent=3103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/categories?post=3103"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/tags?post=3103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}