updated methods to adhere to json standard established with
id,label,parent key/value pairs in a json object.