csv_to_json
Parses CSV with quoted fields and a header row into an array of objects, auto-detecting the delimiter; or converts an array of objects to CSV with mode=to_csv. 0.002 USDC per call via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | to_json or to_csv | to_json |
| text | Yes | CSV text, or a JSON array of objects when mode=to_csv | |
| delimiter | No | Optional delimiter, auto-detected by default | |
| paymentProof | No | Payment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof. |