Search in sources :

Example 1 with SearchResultJson

use of org.eclipse.openvsx.json.SearchResultJson in project openvsx by eclipse.

the class RegistryAPITest method searchJson.

private String searchJson(Consumer<SearchResultJson> content) throws JsonProcessingException {
    var json = new SearchResultJson();
    json.extensions = new ArrayList<>();
    content.accept(json);
    return new ObjectMapper().writeValueAsString(json);
}
Also used : SearchResultJson(org.eclipse.openvsx.json.SearchResultJson) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 SearchResultJson (org.eclipse.openvsx.json.SearchResultJson)1