learning about objetcs/arrays. adapting the json data for graphlib