Deterministic JSON conversion to CSV, JSON, or JSONL with nested flattening and type inference for data agents