fix JSONWriter writing of SolrDocument

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@633860 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-03-05 14:34:39 +00:00
parent 1eaa4395f0
commit 9c3841c013
1 changed files with 2 additions and 1 deletions

View File

@ -415,8 +415,9 @@ class JSONWriter extends TextResponseWriter {
writeArrayOpener(-1); // no trivial way to determine array size
writeVal(fname, val);
writeArrayCloser();
} else {
writeVal(fname, val);
}
writeVal(fname, val);
}
if (pseudoFields !=null && pseudoFields.size()>0) {