Scratch for Java

File::save()

Saves the object to a JSON-File at the given path.

Examples

File /examples/reference/FileSave.java is missing.

View on GitHub

Syntax

Java

.save(path, obj)

Scratch

save (path) (obj)

Parameters

Name Data Type Description
path String Path to a JSON-file.
obj Object An Object.

Return

save()