OK. What do you need the functions to return? (what data structure are you using or would be suitable for what you are doing?). Or can I return whatever data structure I find convenient after parsing the JSON?
It would be really awesome if you could return an array of strings per object. Making them independent of the "parent object". But for "curso", copy over the "codigo de carrera" from the parent object.