Convert JSON to CSV

Terminal
jq -r '.[] | [.id, .name] | @csv' <file>.json