============================================================
 WORKING WITH JSON & CSV DATA - Demo Run
============================================================

--- Write/read JSON round-trip ---
  Round-trip matches: True

--- Write/read CSV round-trip ---
  CSV row 0 (all strings): {'id': '1', 'name': 'Widget', 'price': '9.99', 'quantity': '100'}
  (Note: CSV values are strings -- 'price' and 'quantity' need explicit casting)

--- JSON -> CSV conversion ---
  id,name,price,quantity
  1,Widget,9.99,100

--- CSV -> JSON conversion (with type casting) ---
  First record types: id=int, price=float, quantity=int

--- Malformed JSON handling ---
  safe_read_json('bad.json') -> data=None, error=Malformed JSON: Expecting property name enclosed in double quotes: line 1 column 29 (char 28)

============================================================
 Assignment: merge_json_and_csv
============================================================
  {'id': '1', 'name': 'Widget', 'price': 9.99, 'quantity': 100, 'warehouse': 'A'}
  {'id': '2', 'name': 'Gadget', 'price': 24.99, 'quantity': 50, 'warehouse': 'B'}
