public static String save(Project project, Encoder encoder) {
        
        if (project == null) {
            return "null";
        } else {
            try {
                final Map<String, Object> root = new LinkedHashMap<>();
                root.put(ROOT, project.getData());
                return encoder.encode(root);
            } catch (final IllegalArgumentException ex) {
                throw new SpeedmentConfigException(ex);
            }
        }
    }
Returns a JSON representation of the specified project node.

@param project  the project
@param encoder  the encoder to use
@return         the JSON representation

@throws SpeedmentConfigException  if the input object is not valid
runtime-parent/runtime-config/src/main/java/com/speedment/runtime/config/util/DocumentTranscoder.java