For the selective hit writer, p.properties must be space separated:
But I usually recommend going with the full writer which gives you all properties (and no subtree by default, unless you set p.nodedepth=X):
For more, see also http://www.slideshare.net/alexkli/cq5-querybuilder-adapttoberlin-2011 (which is wrong about the nodedepth default on page 17)
can you please let me know, how to modify the querybuilder,json servlet. Where can i find the file, to modify these properties??
My reply above should answer all your questions if you read the links.
That was very useful.