1. 30 Jun, 2014 10 commits
  2. 29 Jun, 2014 14 commits
  3. 28 Jun, 2014 3 commits
  4. 27 Jun, 2014 10 commits
  5. 26 Jun, 2014 3 commits
    • Milo Yip's avatar
      Add parse error codes and API for converting error code to text. · 3693d61f
      Milo Yip authored
      Parse errors is represented as enum type `ParseErrorCode`.
      Error texts are optional for user.
      Added  `GetParseError_En()` in `error/en.h`, user can localize this file
      into other files. User may dynamically change the locale in runtime.
      3693d61f
    • Milo Yip's avatar
      Merge pull request #25 from miloyip/issue22setjmp · 813eaf4e
      Milo Yip authored
      Removal of setjmp()/longjmp()
      813eaf4e
    • Milo Yip's avatar
      Add safe checks in parsing compound types. · a1a8abd0
      Milo Yip authored
      Compound types (object and array) call ParseString() and ParseValue()
      for key and values. If there is parse errors inside those calls, it
      should stop continue parsing. Otherwise, it may be possible to continue
      parsing and calling handler incorrectly.
      For example, in ["a\u,","b"], \u generates an error (it should follow
      but 4 hex digits), the parser continues to treat the first comma as
      element separator, and treat "," as a JSON string and call the handler.
      It may be unacceptable in the application code.
      a1a8abd0