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

  • From: "waddlesplash" <trac@xxxxxxxxxxxx>
  • Date: Tue, 05 Aug 2014 16:21:57 -0000

#11104: [PATCH] JSON parser
----------------------------+----------------------------
   Reporter:  waddlesplash  |      Owner:  stippi
       Type:  enhancement   |     Status:  assigned
   Priority:  normal        |  Milestone:  R1
  Component:  Kits          |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  1             |   Platform:  All
----------------------------+----------------------------

Comment (by waddlesplash):

 OK, I'll fix the class naming, but I'd rather do everything at once so
 I'll wait for now.

 Array/object can't be handled inside MessageBuilder because the
 MessageBuilder is generic and knows nothing about what types things are.
 It blindly adds what it's told. This way, we can exchange MessageBuilder
 for some other data format in the future that does not support all the
 things BMessage does.

 As for tests: I wasn't sure where to put them or what the best way to do
 it was. Placing them in src/tests/shared sounds OK, I'll see if I can use
 the UnitTester framework. Is there some way to get an equivalent of
 PrintToStream() into a BString?

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

Other related posts: