JSON-RPC Validator

Validate your JSON-RPC requests and responses against the official specifications.

Configuration

Enable additional warnings and stricter validation checks

Loading...

Enter JSON-RPC content and click validate to see results

Or load an example from the left panel

JSON-RPC Validator User Guide

Use this tool to validate your JSON-RPC messages against specification requirements

How to Use the Validator

  1. Select JSON-RPC version - Choose version 1.0 or 2.0 based on your implementation
  2. Select message type - Request, response, notification (2.0 only), or error response
  3. Enter or load JSON-RPC content - Type your JSON-RPC message in the editor or select from examples
  4. Validate - Click the validate button to check your message
  5. View results - The right panel will display validation results, including any errors or warnings

Validation Features

  • Syntax validation - Checks if the message is valid JSON format
  • Protocol validation - Verifies compliance with the selected JSON-RPC version specification
  • Batch requests - Supports validation of JSON-RPC 2.0 batch requests and responses
  • Error indication - Highlights error locations in the editor
  • Strict mode - Enables additional checks and best practice warnings

Version Features

FeatureJSON-RPC 1.0JSON-RPC 2.0
Version fieldNot requiredRequired ("jsonrpc": "2.0")
Parameters formatArray onlyArray or object
Notification supportLimited supportFormal support (no id field)
Batch requestsNot supportedSupported
Error objectSimple error fieldStructured error object

Additional Features

  • Share configuration - Generate a shareable URL that includes your current configuration and content
  • Export results - Export validation results as a JSON file
  • History - View and load your previous validations

Frequently Asked Questions

Common questions and solutions for the JSON-RPC Validator

JSON-RPC Error Codes Reference

Standard predefined error codes and their meanings

Error CodeMessageMeaning
-32700Parse errorInvalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
-32600Invalid RequestThe JSON sent is not a valid Request object.
-32601Method not foundThe method does not exist / is not available.
-32602Invalid paramsInvalid method parameter(s).
-32603Internal errorInternal JSON-RPC error.
-32099 to -32000Server errorReserved for implementation-defined server-errors.

Custom Error Codes

Servers can define their own error codes, but should avoid using the reserved error code range (-32768 to -32000). It is recommended to use error codes greater than -32000 or less than -32768 for custom error codes.