Package test.utils.json

Examples of test.utils.json.Book


    User user = new User();
    user.setId(2434L);
    user.setName("Pengtao");
    so2.setUser(user);
   
    Book book = new Book();
    book.setId(23424);
    book.setPrice(3.4);
    book.setSell(true);
    book.setText("cccccccc");
    book.setTitle("ddddd");
    so2.setBook(book);
   
    String jsonStr = Json.toJson(so2);
   
    SimpleObj2 temp = Json.toObject(jsonStr, SimpleObj2.class);
View Full Code Here

TOP

Related Classes of test.utils.json.Book

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.