+#if 0
+#endif
+
+static int ventoy_api_preview_json(struct mg_connection *conn, VTOY_JSON *json)
+{
+ int pos = 0;
+ int len = 0;
+ int encodelen = 0;
+ char *encodebuf = NULL;
+
+ (void)json;
+
+ len = ventoy_data_real_save_all(0);
+ encodebuf = ventoy_base64_encode(JSON_SAVE_BUFFER, len, &encodelen);
+ encodebuf[encodelen] = 0;
+
+ VTOY_JSON_FMT_BEGIN(pos, JSON_BUFFER, JSON_BUF_MAX);
+ VTOY_JSON_FMT_OBJ_BEGIN();
+ VTOY_JSON_FMT_STRN("json", encodebuf);
+ VTOY_JSON_FMT_OBJ_END();
+ VTOY_JSON_FMT_END(pos);
+
+ free(encodebuf);
+
+ ventoy_json_buffer(conn, JSON_BUFFER, pos);
+ return 0;
+}
+