From e9c77bd249d56840c153bcced386ca961162e1ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 30 Aug 2014 23:28:55 +0200 Subject: [PATCH] JSON parser: Added TODOs. --- src/kits/shared/Json.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/kits/shared/Json.cpp b/src/kits/shared/Json.cpp index df8506aef1..a80335006a 100644 --- a/src/kits/shared/Json.cpp +++ b/src/kits/shared/Json.cpp @@ -99,6 +99,12 @@ BJson::_Parse(BMessage& message, BString& JSON) // in the case that we are parsing a map. BString key(""); + // TODO: Check builder return codes and throw exception, or + // change builder implementation/interface to throw exceptions + // instead of returning errors. + // TODO: Elimitate more duplicated code, for example by moving + // more code into _ParseConstant(). + while (pos < length) { switch (JSON[pos]) { case '{':