JSON 정렬 도구
두 칸 들여쓰기로 JSON을 정렬하거나 한 줄로 압축하고 구문을 확인하세요.
Convert curl -X/-H/-d into fetch and axios snippets.
브라우저에서 처리 — 데이터가 기기를 떠나지 않습니다
// fetch
fetch('https://api.example.com/v1/items', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer token'
},
body: '{"name":"toco.tools"}'
})
// axios
axios({
method: 'post',
url: 'https://api.example.com/v1/items',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer token'
},
data: '{"name":"toco.tools"}'
})Yes.
No.