We need answer user's request. Need produce final JSON only, no markdown. Need parse data and compute.

User Japanese: fictional measurement records. Need extract specified IDs in order: P4-0009, P4-0060, P4-0121, P4-0194, P4-0261, P4-0309. records array of 6 JSON objects keys id, code, value_mg. total_mg is sum of value_mg of 1st, 3rd, 6th records (1-indexed). missing is measurement value for ID=P4-9999 if not exists null. Keys only records,total_mg,missing.

Need find rows:
P4-0009: row0010? Let's check: 行0010: 資料ID=P4-0009; 照合記号=7ed13a79f7ef; 測定値=168 mg.
P4-0060: row0061: P4-0060; code=9188772de636; value=148.
P4-0121: row0122: P4-0121; code=24978b3815ae; value=230.
P4-0194: row0195: P4-0194; code=3ff14169240e; value=705.
P4-0261: row0262: P4-0261; code=f7d04b4b0766; value=264.
P4-0309: row0310: P4-0309; code=60359a9d5dda; value=332.

Total: 1st 168 + 3rd 230 + 6th 332 = 730. Check: 168+230=398; +332=730.
missing P4-9999 not present -> null.

Need output JSON object only. Ensure integers. No code fences. Could be:
{"records":[{"id":"P4-0009","code":"7ed13a79f7ef","value_mg":168},...],"total_mg":730,"missing":null}

Double-check IDs:
P4-0060 row0061: 資料ID=P4-0060; 照合記号=9188772de636; 測定値=148 mg. yes.
P4-0121 row0122: 資料ID=P4-0121; 照合記号=24978b3815ae; 測定値=230 mg. yes.
P4-0194 row0195: 資料ID=P4-0194; 照合記号=3ff14169240e; 測定値=705 mg. yes.
P4-0261 row0262: 資料ID=P4-0261; 照合記号=f7d04b4b0766; 測定値=264 mg. yes.
P4-0309 row0310: 資料ID=P4-0309; 照合記号=60359a9d5dda; 測定値=332 mg. yes.

Need final only JSON. Ensure no trailing commas.
