Write a function to parse a JSON payload of ticket inventory and return the total available seats per section.
The input is a JSON string representing an object with a sections array. Each section has a unique name and a seats array, where each seat has a status of either "available" or "sold". Return a dictionary mapping each section name to its available-seat count. Assume the JSON is valid and section names are unique.
sections array.name and a seats array.status equal to either available or sold.def available_seats_by_section(payload):