def parse_request_result(result)
      if result.nil?
        []
      else
        json = result.read

        if json.nil?
          []
        else
          r = JSON.parse(json)

          # Add the etag to the response only for individual entities
          if result.meta['etag'] and r.class != Array
            r['etag'] = result.meta['etag']
          end

          r
        end
      end
    end
def parse_request_result(result)
      if result.nil?
        []
      else
        json = result.read

        if json.nil?
          []
        else
          r = JSON.parse(json)

          # Add the etag to the response only for individual entities
          if result.meta['etag'] and r.class != Array
            r['etag'] = result.meta['etag']
          end

          r
        end
      end
    end
Parse the JSON result array