Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-584

TypeDescription toJson() returns invalid json

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.2
    • 1.7.0
    • Java
    • None

    Description

       

      toJson method returns invalid JSON string when the category field is STRUCT.

       

       Inside printJsonToBuffer method, we are careting invalid json array just like below,

       

      {
       "fields":[
          "f1":{},
           "f2":{}
       ]
      }
      

      But it should be like this:

      {
       "fields":[
          {"f1":{}},
          {"f2":{}}
       ]
      }
      

       

       

       

      Attachments

        Issue Links

          Activity

            People

              akin-tekeoglu Akin Tekeoglu
              akin-tekeoglu Akin Tekeoglu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m