Use JSON Into An Object Model or Plain JSON

I’m doing a research about the subject of JSON Deserialization Into An Object Model, what do you think about it?

Would you prefer to use JSON from the server as is or converting it to Object Model (concrete JS objects)

What are the benefits of mapping it to Objects and not use the raw JSON, what are the negative aspects ?
What are the performance implications?

Our legacy developer wrote an SDK / DAL with a mapper function that traversing the JSON and make concrete objects,
you can see the implementation here :

Would you work with the parsed JSON or prefer to use a mapping function?

Source: oop

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.