lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mysurf Mail <stammail...@gmail.com>
Subject Problem parsing suggest response
Date Mon, 02 Sep 2013 15:39:19 GMT
Hi,
I am having problems parsing suggest json response in c#.
Here is an example

{

   - responseHeader:
   {
      - status: 0,
      - QTime: 1
      },
   - spellcheck:
   {
      - suggestions:
      [
         - "at",
         -
         {
            - numFound: 1,
            - startOffset: 1,
            - endOffset: 3,
            - suggestion:
            [
               - "atrion"
               ]
            },
         - "l",
         -
         {
            - numFound: 2,
            - startOffset: 4,
            - endOffset: 5,
            - suggestion:
            [
               - "lot",
               - "loadtest_template_700"
               ]
            },
         - "collation",
         - ""atrion lot""
         ]
      }

}

1. Is this a valid json? Shouldnt every item be surrounded by quatation
marks?
2. The items "at" and "l" are not preceded by name.
(This generates different xml in every online json-to-xml translater.
Is this a standard json?
Can I interfere with the structure?

Thanks.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message