Package com.netflix.zeno.json

Examples of com.netflix.zeno.json.JsonSerializationFramework


    @Test
    @SuppressWarnings("unused")
    public void serializeJson() throws IOException {

        JsonSerializationFramework jsonFramework = new JsonSerializationFramework(new ExampleSerializerFactory());

        String json = jsonFramework.serializeAsJson("A", getExampleA());

        System.out.println("JSON FOR A:");
        System.out.println(json);

        A deserializedA = jsonFramework.deserializeJson("A", json);

        String bJson = jsonFramework.serializeAsJson("B", new B(50, "fifty"));

        System.out.println("JSON FOR B:");
        System.out.println(bJson);

    }
View Full Code Here

TOP

Related Classes of com.netflix.zeno.json.JsonSerializationFramework

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.