editingContext.lock();
try {
Company c = (Company) ERXRestFormat.json().parse("{\"type\":\"Company\",\"name\":\"Company\",\"revenue\":100,\"employees\":[{\"type\":\"Person\",\"age\":10,\"name\":\"Mike\",\"salary\":null}]}").createObjectWithFilter(null, ERXKeyFilter.filterWithAllRecursive(), new ERXRestContext(editingContext));
assertTrue(editingContext.globalIDForObject(c).isTemporary());
assertEquals("Company", c.name());
assertEquals(100.0, c.revenue().doubleValue());
NSArray<Person> employees = c.employees();
assertEquals(1, employees.count());
Person p = employees.objectAtIndex(0);
assertTrue(editingContext.globalIDForObject(p).isTemporary());
assertEquals("Mike", p.name());