dma wrote:We're considering removing the support for deserializing JSON into custom classes because it may be more practical to deal with basic JSON representations (null, String, Number, Boolean, JSONObject, JSONArray). If you are using this functionality, please speak now or forever hold your peace! :)
barcia wrote:I think we need to keep this. Especially for those who like some sort of domain model (especially in lite of some persistence enhancements that may be coming?)
steveims wrote:barcia wrote:I think we need to keep this. Especially for those who like some sort of domain model (especially in lite of some persistence enhancements that may be coming?)
If you're referring to the lightweight resource modeling work, then custom classes are not needed for deserialization. The resource modeling uses "value objects" (think Maps) as in-memory representations.
barcia wrote:Ok. I agree with Pat. If someone pulls in Hibernate or JPA for example, you can still provide value. Why do you want to get rid of them. The JSON API's do not seem bloated.
dma wrote:I understand that JSON and XML are different, however, that doesn't mean that we shouldn't be symmetrical with our support. Converting Objects to XML could be handy for someone who doesn't want to deal with any XML APIs when building an app [prototype, sample, etc.] using Zero.
Users browsing this forum: No registered users and 1 guest