Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2949

JsonLoader only reads arrays of objects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.10.0
    • 0.15.0
    • None
    • None
    • os x mountain lion

    • Patch Available
    • Reviewed

    Description

      I'm trying to load a vendor file that's json ecoded into pig. One of the fields is an array of strings. The builtin JsonLoader only reads arrays composed of json objects

      {"object_array}

      :[

      {"element":"value1"}

      ,

      {"element":"value2"}

      ]} works
      but

      {"string_array"}

      :["value1","value2"] does not

      Attachments

        1. JsonLoader.java
          13 kB
          David LaBarbera
        2. PIG-2949.patch
          10 kB
          Eyal Allweil

        Activity

          People

            eyal Eyal Allweil
            foodneutrino David LaBarbera
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: