working with the JSON structure