{"library":"genson","code":"from genson import SchemaBuilder\nimport json\n\n# Initialize SchemaBuilder\nbuilder = SchemaBuilder()\n\n# Add the first JSON object\nbuilder.add_object({\n    \"name\": \"Alice Johnson\",\n    \"email\": \"alice@example.com\",\n    \"age\": 30,\n    \"is_active\": True,\n    \"tags\": [\"user\", \"admin\"]\n})\n\n# Add a second JSON object, demonstrating schema merging\nbuilder.add_object({\n    \"name\": \"Bob Smith\",\n    \"email\": \"bob@example.com\",\n    \"age\": 25,\n    \"phone\": \"+1-555-0100\",\n    \"tags\": [\"user\"]\n})\n\n# Generate and print the unified JSON Schema\nschema = builder.to_schema()\nprint(json.dumps(schema, indent=2))","lang":"python","description":"This quickstart demonstrates how to initialize a `SchemaBuilder` and add multiple JSON objects to it. GenSON will automatically infer the common schema, merging types and determining required fields across all added objects. The resulting schema is then printed, prettified with an indent of 2.","tag":null,"tag_description":null,"last_tested":"2026-04-24","results":[{"runtime":"python:3.10-alpine","exit_code":0},{"runtime":"python:3.10-slim","exit_code":0},{"runtime":"python:3.11-alpine","exit_code":0},{"runtime":"python:3.11-slim","exit_code":0},{"runtime":"python:3.12-alpine","exit_code":0},{"runtime":"python:3.12-slim","exit_code":0},{"runtime":"python:3.13-alpine","exit_code":0},{"runtime":"python:3.13-slim","exit_code":0},{"runtime":"python:3.9-alpine","exit_code":0},{"runtime":"python:3.9-slim","exit_code":0}]}