feat: add JSON validation utility with detailed error messages

This commit is contained in:
Adithya Jagadeesh
2025-03-09 15:38:46 +05:30
parent d01e2f0f2f
commit 038dfdd9a5
4 changed files with 132 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
import { defineTool } from '@tools/defineTool';
import { lazy } from 'react';
export const tool = defineTool('json', {
name: 'Validate JSON',
path: 'validateJson',
icon: 'lets-icons:json-light',
description:
'Validate JSON data and identify formatting issues such as missing quotes, trailing commas, and incorrect brackets.',
shortDescription: 'Quickly validate a JSON data structure.',
keywords: ['validate', 'json', 'syntax'],
component: lazy(() => import('./index'))
});