Let us say that when I get an HTTP JSON response, I am only interested in some of the JSON fields returned, but not all of them.
Is there a way to unmarshal only some of the fields into my object?
Let us say that when I get an HTTP JSON response, I am only interested in some of the JSON fields returned, but not all of them.
Is there a way to unmarshal only some of the fields into my object?
When you parse a JSON object, you're usually going to map it to a case class. If the JSON object contains more fields than the case class, then the excess fields will simply be ignored by most JSON libraries while unmarshalling.