Some sample code to parse a string
Converts the string: "(id,created,employee(id,firstname,employeeType(id),lastname),location)"
To the following output:
id
created
employee
– id
– firstname
– employeeType
–– id
– lastname
location
And (output in alphabetical order):
created
employee
– employeeType
–– id
– firstname
– id
– lastname
id
location