Started implementing relationships in JSON output