mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
JSON refactor - tidy up
This commit is contained in:
@@ -26,8 +26,8 @@ public class TestTextJsonInheritance extends BaseTestCase {
|
||||
|
||||
Assert.assertEquals(2, list.size());
|
||||
|
||||
JsonContext jsonContext = Ebean.createJsonContext();
|
||||
String jsonString = jsonContext.toJsonString(list);
|
||||
JsonContext jsonContext = Ebean.json();
|
||||
String jsonString = jsonContext.toJson(list);
|
||||
System.out.println(jsonString);
|
||||
|
||||
List<Vehicle> rebuiltList = jsonContext.toList(Vehicle.class, jsonString);
|
||||
|
||||
Reference in New Issue
Block a user