Đang chọn gợi ý…
Chọn ngẫu nhiên một nội dung dành cho bạn.
Mở ngay →Convert JSON sample sang TypeScript interface chuẩn. Hỗ trợ nested object, array, optional/readonly. Dùng cho API response, LLM structured output.
Chuyển JSON sample thành TypeScript interface — phù hợp cho API response, dữ liệu LLM structured output, mock data. 100% chạy trong browser.
["a","b"] → string[]. Mixed → Array<string | number>.Bạn muốn Claude trả structured response. Đầu tiên thiết kế JSON sample:
{
"summary": "Bài viết về AI",
"topics": ["LLM", "RAG"],
"sentiment": "positive",
"actionItems": [
{ "task": "đọc thêm", "priority": "high" }
]
} Tool sinh ra:
export interface ActionItem {
task: string;
priority: string;
}
export interface Root {
summary: string;
topics: string[];
sentiment: string;
actionItems: ActionItem[];
} Dùng với Zod để validate response:
import { z } from 'zod';
const ActionItemSchema = z.object({
task: z.string(),
priority: z.string(),
});
const RootSchema = z.object({
summary: z.string(),
topics: z.array(z.string()),
sentiment: z.string(),
actionItems: z.array(ActionItemSchema),
}); Lập trình viên fullstack/backend/devops — debug JWT, format JSON/SQL, parse cURL, tính subnet CIDR, vẽ diagram Mermaid, viết commit chuẩn… Toolkit dùng hằng ngày trong terminal & code editor.
Không. Tất cả công cụ dev của TopDev chạy 100% client-side — JWT, SQL, JSON, cURL, regex… đều xử lý trong trình duyệt. Bạn có thể tắt mạng để kiểm chứng. Phù hợp để paste token nội bộ, query database production, key API.
Tool đã chạy được offline sau lần load đầu tiên. PWA installable đang nằm trong roadmap — hiện tại bạn có thể bookmark trang và dùng khi mất mạng.
Decode JWT token, xem header/payload/claims với thời gian dễ đọc.
MỚIPaste 2 đoạn text/code → highlight khác biệt từng từ/dòng/ký tự. Phù hợp diff output AI.
MỚITạo JSON Schema (Draft-07) từ JSON mẫu — dùng cho structured output LLM, validate API.
MỚIFormat / minify / validate JSON. Sort key A-Z, custom indent, phím tắt Ctrl+Enter.