[ 
https://issues.apache.org/jira/browse/SOLR-6445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14114063#comment-14114063
 ] 

Uwe Schindler commented on SOLR-6445:
-------------------------------------

bq. Could we support unquoted simple "name" values as well?

I disagree. The proposal in this issue was to allow all "Javascript" syntax. 
But Javascript does not allow values to be without quotes. The reason is 
simple: You cannot guess the type from it (at least the javascript grammar 
cannot).

One thing: We should (if relaxing) also allow trailing commas, like:

{code:javascript}
{
  "key1": "value",
  "key2": "value", // <-- here
}
{code}

> Allow flexible JSON input 
> --------------------------
>
>                 Key: SOLR-6445
>                 URL: https://issues.apache.org/jira/browse/SOLR-6445
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Noble Paul
>
> Support single quotes and unquoted keys
> {code:javascript}
> //all the following must be valid and equivalent
> {"id" :"mykey"}
> {'id':'mykey'}
> {id: "mykey"}
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to