: We have index where date field have default value as 'NOW'. We are using : solrj to query solr and when we try to convert query : response(response.getResponse) to JSON object in java. The JSON
You're going to have to show us some real code, some real data, and a real error exception that you are getting -- because it's not at all clear what you are trying to do, or why you would get an error about invalid JSON. If you generate a JSON response from Solr, you'll get properly quoted strings for the dates... $ curl 'http://localhost:8983/solr/collection1/query?q=SOLR&fl=*_dt&' { "responseHeader":{ "status":0, "QTime":8, "params":{ "fl":"*_dt", "q":"SOLR"}}, "response":{"numFound":1,"start":0,"docs":[ { "incubationdate_dt":"2006-01-17T00:00:00Z"}] }} ...but it appears you are trying to *generate* JSON yourself, using the Java objects you get back from a parsed SolrJ response -- so i'm not sure where you would be getting an error about invalid JSON, unless you were doing something invalid in the code you are writing to create that JSON. -Hoss http://www.lucidworks.com/