using JSON arrays instead of objects for contexts and relations