I am using it. But timestamp having ":" in between causes the issue. Please help
On Tue, Jan 7, 2014 at 11:46 AM, Ahmet Arslan <iori...@yahoo.com> wrote: > Hi Amit, > > If you want json response, Why don't you use wt=json? > > Ahmet > > > On Tuesday, January 7, 2014 7:34 AM, Amit Jha <shanuu....@gmail.com> > wrote: > Hi, > > > 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 > API(org.json) throws 'invalid json string' exception. API say so because > date field value i.e. yyyy-mm-ddThh:mm:ssZ is not surrounded by double > inverted commas( " ). So It says required , or } character when API see the > colon. > > Could you please help me to retrieve the date field value as string in JSON > response. Or any pointers. > > Any help would be highly appreciable. > > > > On Tue, Jan 7, 2014 at 12:28 AM, Amit Jha <shanuu....@gmail.com> wrote: > > > Hi, > > > > "Wish You All a Very Happy New Year"..... > > > > 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 > > API(org.json) throws 'invalid json string' exception. API say so because > > date field value i.e. yyyy-mm-ddThh:mm:ssZ is not surrounded by double > > inverted commas( " ). So It says required , or } character when API see > the > > colon. > > > > Could you please help me to retrieve the date field value as string in > > JSON response. Or any pointers. > > > > Any help would be highly appreciable. > > > > > > > > > >