The result of searching for a symbol or type is JSON - mark the outcome as such.
1.1 --- a/remoting/server/web/type.web.api/src/org/netbeans/modules/jackpot30/backend/type/api/Symbol.java Tue Jan 01 18:56:54 2013 +0100
1.2 +++ b/remoting/server/web/type.web.api/src/org/netbeans/modules/jackpot30/backend/type/api/Symbol.java Sat Jan 05 09:22:06 2013 +0100
1.3 @@ -61,7 +61,7 @@
1.4
1.5 @GET
1.6 @Path("/search")
1.7 - @Produces("text/plain")
1.8 + @Produces("application/json")
1.9 public String findSymbol(@QueryParam("path") String segment, @QueryParam("prefix") String prefix, @QueryParam("casesensitive") @DefaultValue("false") boolean casesensitive, @QueryParam("querykind") String queryKindName) throws IOException, InterruptedException {
1.10 return doFind(segment, prefix, casesensitive, queryKindName, "feature", new SymbolConvertorImpl());
1.11 }
2.1 --- a/remoting/server/web/type.web.api/src/org/netbeans/modules/jackpot30/backend/type/api/Type.java Tue Jan 01 18:56:54 2013 +0100
2.2 +++ b/remoting/server/web/type.web.api/src/org/netbeans/modules/jackpot30/backend/type/api/Type.java Sat Jan 05 09:22:06 2013 +0100
2.3 @@ -59,7 +59,7 @@
2.4
2.5 @GET
2.6 @Path("/search")
2.7 - @Produces("text/plain")
2.8 + @Produces("application/json")
2.9 public String findType(@QueryParam("path") String segment, @QueryParam("prefix") String prefix, @QueryParam("casesensitive") @DefaultValue("false") boolean casesensitive, @QueryParam("querykind") String queryKindName) throws IOException, InterruptedException {
2.10 return doFind(segment, prefix, casesensitive, queryKindName, "class", new TypeConvertorImpl());
2.11 }