Parse this person name:

Andrew J. (Andrew Janet) Lam, 1247-1305
user
first_name: Andrew
last_name: Lam
middle_names:
- Janet
temporal:
- start: 1247
  end: 1305
  type: life_span
titles: []
extra_info: []
assistant