Save to JSON format

Added functions (with documentation) to save forests as JSON files, and
load forests from JSON files.