Uploaded image for project: 'ProtoStream'
  1. ProtoStream
  2. IPROTO-283

Transcoding of bytes properties from a JSON array

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 4.6.6.Final, 5.0.0.Dev01
    • None
    • None
    • None
    • False
    • False
    • None
    • None

      Java byte[] properties are translated into bytes Proto fields.
      The JSON representation of those instances is the Base64 encoding of the binary.

      {"_type":"Item","code":"c7","byteVector":"BwcH","floatVector":[1.1,1.1,1.1],"buggy":"bla bla bla"}
      

      We want to provide al alternative way to specify the bytes value using JSON, that is using a JSON array:

      {"_type":"Item","code":"c7","byteVector":[7,7,7],"floatVector":[1.1,1.1,1.1],"buggy":"bla bla bla"}
      

            fercoli@redhat.com Fabio Massimo Ercoli
            fercoli@redhat.com Fabio Massimo Ercoli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: