[haiku-bugs] [Haiku] #11104: [PATCH] JSON parser

  • From: "waddlesplash" <trac@xxxxxxxxxxxx>
  • Date: Tue, 05 Aug 2014 15:35:17 -0000

#11104: [PATCH] JSON parser
--------------------------+------------------------------
 Reporter:  waddlesplash  |        Owner:  nobody
     Type:  enhancement   |       Status:  new
 Priority:  normal        |    Milestone:  R1
Component:  Kits          |      Version:  R1/Development
 Keywords:                |   Blocked By:
 Blocking:                |  Has a Patch:  0
 Platform:  All           |
--------------------------+------------------------------
 Will be used by HaikuDepot, but it's going in the shared kit so that other
 apps can use it in the future.

 To parse, just call Json::Parse with a BMessage and a BString or char*
 that has JSON data in it. It should be self-explanatory after that :)

 Attached is the patch and a small program that I used to test it (it loads
 a test.json file from the working directory and then calls ->PrintToStream
 on the BMessage).

 Tested against various cases found on http://json.org including a few that
 used \uXXXX constructs.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11104>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: