fix for json output (no doubleqotes any more, doublequote quoting did not work)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6105 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent 49955cc7b9
commit bdda140c02

@ -153,7 +153,7 @@ public class serverObjects extends HashMap<String, String> implements Cloneable
* @return the modified String that was added to the map.
*/
public String putJSON(final String key, String value) {
value = value.replaceAll("\"", "\\\"");
value = value.replaceAll("\"", "'");
value = value.replaceAll("/", "\\/");
// value = value.replaceAll("\\", "\\\\");
value = value.replaceAll("\b", "\\b");

@ -75,7 +75,6 @@ public class LogalizerHandler extends Handler {
}
for (final String filename: parserDirFiles) {
if (filename.endsWith("Log.class") || filename.endsWith("LogalizerHandler.class")) continue;
System.out.println("************ logparser=" + filename);
registerParser(filename);
}
} catch (final IOException e) {

Loading…
Cancel
Save