algoliasearch/src/offline/java/com/algolia/search/saas/OfflineIndex.java
private @NonNull File writeTmpJSONFile(@NonNull JSONObject object) throws AlgoliaException {
        return writeTempFile(object.toString());
    }
private @NonNull File writeTmpJSONFile(@NonNull JSONObject object) throws AlgoliaException {
        return writeTempFile(object.toString());
    }
Write a temporary file containing a JSON object.

@param object JSON object to write.
@return Path to the created file.
@throws AlgoliaException