parseBatch

Parse a JSON-RPC batch (array) from text.

Throws McpException when the input is not valid JSON, is not an array, is an empty array, or when every member fails validateEnvelope (all-malformed batch). For mixed batches the well-formed members are returned and malformed members are silently dropped.

More...
@safe deprecated @safe
parseBatch
(
string text
)

Detailed Description

Deprecated: Use parseBatchTolerant or parseAny to preserve per-member error information, which is required to produce the JSON-RPC 2.0 §6 id:null error response for each malformed member.