sort_catalog(raw) that parses a JSON array of products (each with name and price), sorts them by price ascending, and returns the re-serialized JSON string — the everyday parse → transform → dump cycle.sort_catalog(json_text) # [{"name": "b", "price": 5}, {"name": "a", "price": 2}][{"name": "a", "price": 2}, {"name": "b", "price": 5}]Cheapest first after the round-trip.
sorted(data, key=lambda p: p['price']).
dumps the sorted list.