Skip to content

Commit

Permalink
Fix parsing for empty JSON objects
Browse files Browse the repository at this point in the history
  • Loading branch information
brunexgeek committed Feb 12, 2019
1 parent 93c93bf commit 0da5e22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/cpp/cppgen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ static void generateDeserializer( GeneratorContext &ctx, const Message &message
"\t(void) err;\n"
"in.skipws();\n"
"if (in.get() != '{') PROTOGEN_REG(err, in, \"Invalid object\");\n"
"in.skipws();\n"
"std::string name;\n");

ctx.printer(
Expand Down

0 comments on commit 0da5e22

Please sign in to comment.