From decaa143fb6c05555d00c1e303498df2f5405e6c Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Tue, 24 Nov 2015 00:38:40 +0100 Subject: [PATCH] recherche: library for JSON parsing looked at - boost property_tree - boost spirit - JSON-C - JsonCpp - rapidjson - vjson / gason the results where quite obvious: --> rapidjson Rationale: we do not want yet another object system; rapidjson has an SAX-style API (and additionally an DOM API if needed). And it is fast, supports in-situ parsing, extended Unicode support, full JSON support and an exchangable allocator. License is MIT --- wiki/thinkPad.ichthyo.mm | 205 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 205 insertions(+) diff --git a/wiki/thinkPad.ichthyo.mm b/wiki/thinkPad.ichthyo.mm index 226343cd2..b69ee346a 100644 --- a/wiki/thinkPad.ichthyo.mm +++ b/wiki/thinkPad.ichthyo.mm @@ -2142,6 +2142,211 @@ + + + + + + + + + + + + + + + + + + + + +

+ schmerzloses C++ API +

+ + +
+
+ + + + + + + + + +

+ Performance: guter Schnitt (etw. besser als boost spirit) +

+ + +
+
+ + + + + + + + + + + +

+ hat ein DOM-API und ein SAX-artiges API +

+ + +
+ +
+ + + + + + +

+ das heißt: nicht einmal abhängig von der STL +

+ + +
+
+ + + + + + + +

+ wie gson +

+ + +
+
+ + + + + + + + + +

+ vjson war Google Code; +

+

+ nach dem Umzug auf Github heißt es gason +

+ + +
+ + + + + + +

+ lt. eigenen Benchmakrs deutlich schneller als rapitjson, welches eigentlich immer als der "schnelle" JSON-Parser gilt. +

+ + +
+
+ + + + + + + + +

+ d.h. das Parsen schreibt den Eingabepuffer um, und Strings bleiben einfach liegen +

+ + +
+
+ + + + + + + + + + + + + + + + + +

+ kein Repo auffindbar +

+ + +
+
+
+ + + + + + + + + + + + + + + + + + + + +

+ ich will nicht noch ein Objekt-System +

+ + +
+
+ + + + + + + + + + + + + + + + + +