1. 06 Dec, 2017 1 commit
  2. 28 Jul, 2017 1 commit
    • Kenton Varda's avatar
      Add new `capnp convert` command with JSON support. · c4c5e404
      Kenton Varda authored
      This supersedes the `capnp encode` and `capnp decode` commands. It didn't make sense to add JSON to those commands since it was unclear if JSON should be thought of as the "encoded" or "decoded" format. `convert` allows mapping anything to anything.
      
      This command is also useful for, say, converting unpacked format to packed format or vice versa, which can now be done without a schema.
      c4c5e404
  3. 22 May, 2017 1 commit
    • Kenton Varda's avatar
      Disable implicit conversion from string literal to ArrayPtr<const char>. · 97aae1bb
      Kenton Varda authored
      This conversion would end up including the NUL terminator in the array, which is almost never what you want.
      
      We can perhaps re-enable this in the future and have it automatically remove the NUL terminator, but we should do at least one release with it disabled to catch anyone who might be affected by the change in behavior.
      97aae1bb
  4. 02 May, 2016 1 commit
  5. 01 May, 2016 1 commit
  6. 23 Mar, 2016 1 commit
  7. 13 Nov, 2015 1 commit
  8. 12 Nov, 2015 1 commit
  9. 09 Nov, 2015 1 commit
  10. 08 Aug, 2015 1 commit
  11. 06 Aug, 2015 1 commit
    • Kenton Varda's avatar
      WIP JSON encoder/decoder library. Currently only encodes. · e3e9ce8d
      Kenton Varda authored
      The library allows for registering special handlers for specific types or fields. This is particluarly useful for overriding the way `Data` is encoded (since many approaches exist) or supporting encodings like EJSON or Q which extend JSON with special types encoded as objects with field names perfixed by dollar signs.
      
      Not integrated into build system yet (but builds nicely with Ekam). I think this is going to need to be a separate library, e.g. libcapnp-json, because clearly a lot of Cap'n Proto users don't need it at all.
      
      For the moment, this was written for use inside Sandstorm. There is no current need for a decoder, so I have not written that yet and have no immediate plans to do so. But it will be added before any official Cap'n Proto release, certainly. A simple recursive descent parser should be easy...
      e3e9ce8d