Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9787

Replace json.nl=arrnvp with json.nl=arrntv (array of Name Type Value) style in JSONResponseWriter

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 6.4, 7.0
    • None
    • None

    Description

      This follows on from and builds upon SOLR-9442's addition of json.nl=arrnvp style. See https://issues.apache.org/jira/browse/SOLR-9442?focusedCommentId=15664719&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15664719 onwards for background info.

      Example:

      NamedList("a"=1,"bar”=“foo",null=3.4f,null=null)
      =>
      [
        { "name":"a",   "type":"int",   "value":1     },
        { "name":"bar", "type":"str",   "value":"foo" },
        { "name":null,  "type":"float", "value":3.4   },
        { "name":null,  "type":"null",  "value":null  }
      ]
      

      This style maintains the type information of the values, similar to the xml format:

      <lst name=“someField”>
        <int name=“a”>1</int>
        <str name=“bar”>foo</str>
        <float>3.4</float>
        <null/>
      </lst>
      

      Attachments

        1. SOLR-9787.patch
          12 kB
          Jonny Marks
        2. SOLR-9787.patch
          14 kB
          Christine Poerschke

        Issue Links

          Activity

            People

              cpoerschke Christine Poerschke
              cpoerschke Christine Poerschke
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: