Naming a method that converts raw data to an object

Let's say you have data in the format:

name=john;age=33;gender=male

      

What would you call a method that converts data like this into an object / associative array?

I was thinking about:
- unserialize_variables
- parse_variables

+2


a source to share


4 answers


DeserialisePerson



+1


a source


Person.Unserialize?



+1


a source


PersonReader. Works if you change how you save person data in the future too.

+1


a source


In two steps:

ContainerType person = data.parse();

Employee employee( person["name"], person["age"], person["gender"] );

      

0


a source







All Articles