add readJSON, writeJSON