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

Improve Map JSON output

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 5.0.6.Final
    • None
    • None
    • False
    • False
    • None

      Printing the JSON representation of the following entity generates a weird print of the Map

      JSON

      {"_type":"generic.MapOfString","data":["\n\u00011\u0012\u00012","\n\u00013\u0012\u00014"]}
      

      Entity

      public class MapOfString {
          @ProtoField(value = 1, mapImplementation = HashMap.class)
          public Map<String, String> data;
      }
      

      Source code: https://github.com/pruivo/protostream/commit/c55c3899c320a8055f26a16cd9631559ac557203

              Unassigned Unassigned
              pruivo@redhat.com Pedro Ruivo
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: