2015-03-12 18:09 GMT-03:00 Sven Van Caekenberghe <s...@stfx.eu>:
> I don't really understand why you want to keep the original JSON. It is a bit 
> like you don't trust the parsing and/or mapping. Now, the mapping I 
> understand (somewhat).

I guess this has to do with the fact that if you have a REST+JSON API
he wants to preserve the JSON payload that was used to create the
instance (in case of a POST).

So you first parse the JSON, create the object from it, and then
assign the JSON string to it (and this should never change).

Some API's preserve the entire request (including HTTP headers) in the
created/updated object.


Esteban A. Maringolo

Reply via email to