You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Christine Poerschke (JIRA)" <ji...@apache.org> on 2016/11/21 15:52:58 UTC

[jira] [Created] (SOLR-9787) Add json.nl=arrntv (array of Name Type Value) style in JSONResponseWriter

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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org