APISonar


com.yahoo.squidb.json.JSONFunctions.json

> com > yahoo > squidb > json > JSONFunctions > json
com APIs yahoo APIs squidb APIs json APIs JSONFunctions APIs json APIs

Example 1
public void testJson() {
        testJsonFunction(new Runnable() {
            @Override
            public void run() {
                Function<String> json = JSONFunctions.json(" { \"this\" : \"is\", \"a\": [ \"test\" ] } ");
                String minified = database.simpleQueryForString(Query.select(json));
                assertEquals("{\"this\":\"is\",\"a\":[\"test\"]}", minified);
            }
        });
    }