} else {
return result;
}
} else if(node.isLiteral()) {
KiWiLiteral l = (KiWiLiteral)node;
return "{ \"type\" : \"literal\"," +
" \"value\" : \"" + l.getContent().replace("\"","\\\"") + "\"" +
(l.getLocale() != null ? ", \"lang\" : \""+l.getLocale().getLanguage() + "\"" : "") +
(l.getType() != null ? ", \"type\" : \""+l.getType()+"\"" : "") +
" }";
} else {
return null;
}