graphql-type-json

JSON →
library 0.3.2 ·javascript
verified Jun 7, 2026

A GraphQL.js library providing JSON scalar types (GraphQLJSON and GraphQLJSONObject) for representing arbitrary JSON values in GraphQL schemas. Current stable version 0.3.2, maintained with low release cadence. Supports GraphQL.js >=0.8.0. Ships TypeScript definitions. Key differentiator: simple, lightweight solution for JSON scalars without additional dependencies. GraphQLJSON handles any JSON-serializable value; GraphQLJSONObject only accepts objects, providing stricter validation. Commonly used in Apollo Server, graphql-tools, and programmatic schema construction.