JSON deserialization persists objects to database