code: public static void writePropsNoJarDependency(final Map<String, String> properties,
        final Writer writer) throws IOException {
      writer.write("{\n");
      int size = properties.size();
  
      for (final Map.Entry<String, String> entry : properties.entrySet()) {
        // tab the space
        writer.write('\t');
        // Write key
        writer.write(quoteAndClean(entry.getKey()));
        writer.write(':');
        writer.write(quoteAndClean(entry.getValue()));
  
        size -= 1;
        // Add comma only if it's not the last one
        if (size > 0) {
          writer.write(',');
        }
        writer.write('\n');
      }
      writer.write("}");
    }
docs: /*
  Writes json to a stream without using any external dependencies.
  
  This is useful for plugins or extensions that want to write properties to a
  writer without having to import the jackson, or json libraries. The
  properties are expected to be a map of String keys and String values.
  
  The other json writing methods are more robust and will handle more cases.