Christine Poerschke created SOLR-9787:
-----------------------------------------

             Summary: Add json.nl=arrntv (array of Name Type Value) style in 
JSONResponseWriter
                 Key: SOLR-9787
                 URL: https://issues.apache.org/jira/browse/SOLR-9787
             Project: Solr
          Issue Type: Task
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Christine Poerschke
            Assignee: Christine Poerschke
            Priority: Minor


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:
{code}
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  }
]
{code}

This style maintains the type information of the values, similar to the xml 
format:
{code}
<lst name=“someField”>
  <int name=“a”>1</int>
  <str name=“bar”>foo</str>
  <float>3.4</float>
  <null/>
</lst>
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to