Hi all,

Is there a way to convert the QueryResponse from a Solrj query to Json? I am 
using JSONWriter to write the result as a json response in my servlet but when 
I convert solrDocs to an array, it converts everything to string with quotes 
including arrays.
Example of this:

It would return 

{
    "test": [
        {
            "Test1": "[Test3 Test4 Test5]"
        },
        {
            "Test6": "[Test7 Test8 Test9]"
        }
    ]
}


Instead of

{
    "test": [
        {
            "Test1": [
                "Test3",
                "Test4",
                "Test5"
            ]
        },
        {
            "Test6": [
                "Test7",
                "Test8",
                "Test9"
            ]
        }
    ]
}

Any help is appreciated.

Thanks,
Firas

Reply via email to