Пример #1
0
 private static String writeJSONInternal(JsonRepresentation representation) {
   String result = "";
   StringWriter writer = new StringWriter();
   try {
     representation.write(writer);
     result += writer.toString();
   } catch (IOException e) {
     log.log(Level.INFO, e.getMessage(), e);
   }
   return result;
 }