JSON output format for relationships optimized