All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.nosqlbench.virtdata.userlibs.apps.docsapp.AutoDocsJson Maven / Gradle / Ivy

package io.nosqlbench.virtdata.userlibs.apps.docsapp;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import io.nosqlbench.virtdata.processors.DocFuncData;

import java.util.List;

public class AutoDocsJson {

//    public static String getAsJson() {
//        List docModels = VirtDataDocs.getAllDocs();
//        Gson gson = new GsonBuilder().setPrettyPrinting().create();
//        String json = gson.toJson(docModels);
//        return json;
//    }

    public static String getAsJson(List groupedDocs) {
        Gson gson = new GsonBuilder().setPrettyPrinting().create();
        String json = gson.toJson(groupedDocs);
        return json;

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy