public static Slime jsonToSlimeOrThrow(byte[] json) {
        Slime slime = new Slime();
        new JsonDecoder().decodeOrThrow(slime, json);
        return slime;
    }
Throws {@link JsonParseException} on invalid JSON.
vespajlib/src/main/java/com/yahoo/slime/SlimeUtils.java