diff --git a/locales/en.yml b/locales/en.yml index ecfb46b7..173fc743 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -349,6 +349,10 @@ tools: title: JSON minify description: Minify and compress your JSON by removing unnecessary whitespace. + json-string-converter: + title: JSON string converter + description: Convert your plain text or JavaScript objects into JSON string format and vice versa. + ulid-generator: title: ULID generator description: Generate random Universally Unique Lexicographically Sortable Identifier (ULID). diff --git a/src/tools/index.ts b/src/tools/index.ts index 4a936998..9390a587 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -1,6 +1,7 @@ import { tool as base64FileConverter } from './base64-file-converter'; import { tool as base64StringConverter } from './base64-string-converter'; import { tool as basicAuthGenerator } from './basic-auth-generator'; +import { tool as jsonStringConverter } from './json-string-converter'; import { tool as dnsQueries } from './dns-queries'; import { tool as icoConverter } from './ico-converter'; import { tool as jsonEditor } from './json-editor'; @@ -289,6 +290,7 @@ export const toolsByCategory: ToolCategory[] = [ textToNatoAlphabet, textToBinary, textToUnicode, + jsonStringConverter, textToUnicodeNames, yamlToJson, yamlToToml, diff --git a/src/tools/json-string-converter/index.ts b/src/tools/json-string-converter/index.ts new file mode 100644 index 00000000..2a597df8 --- /dev/null +++ b/src/tools/json-string-converter/index.ts @@ -0,0 +1,12 @@ +import { IconBraces } from '@tabler/icons-vue'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'Json string converter', + path: '/json-string-converter', + description: '', + keywords: ['json', 'string', 'converter'], + component: () => import('./json-string-converter.vue'), + icon: IconBraces, + createdAt: new Date('2024-10-17'), +}); diff --git a/src/tools/json-string-converter/json-string-converter.vue b/src/tools/json-string-converter/json-string-converter.vue new file mode 100644 index 00000000..71da2603 --- /dev/null +++ b/src/tools/json-string-converter/json-string-converter.vue @@ -0,0 +1,56 @@ + + +