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:53:59 UTC

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

     [ https://issues.apache.org/jira/browse/SOLR-9787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christine Poerschke updated SOLR-9787:
--------------------------------------
    Attachment: SOLR-9787.patch

> 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
>         Attachments: SOLR-9787.patch
>
>
> 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