MCPcopy Create free account
hub / github.com/dreamhead/moco / json

Method json

moco-core/src/main/java/com/github/dreamhead/moco/Moco.java:390–392  ·  view source on GitHub ↗
(final String jsonText)

Source from the content-addressed store, hash-verified

388 }
389
390 public static ContentResource json(final String jsonText) {
391 return json(text(checkNotNullOrEmpty(jsonText, "Json should not be null")));
392 }
393
394 public static ContentResource json(final Resource resource) {
395 checkNotNull(resource, "Json should not be null");

Calls 3

textMethod · 0.95
checkNotNullOrEmptyMethod · 0.80
jsonResourceMethod · 0.80