.scss
Code
JSON (JavaScript Object Notation)
JSON은 현대 웹 개발에서 가장 널리 사용되는 데이터 교환 형식입니다. API 응답, 설정 파일, 데이터 저장에 사용되며 JavaScript 객체 리터럴 구문에서 파생되었지만 언어에 독립적입니다.
MIME 타입
text/x-scss
유형
텍스트
압축
무손실
장점
- + CSS-compatible syntax — any CSS is valid SCSS
- + Powerful module system (@use, @forward) for large projects
- + Rich built-in functions for colors, math, and lists
- + Industry standard in enterprise design systems
단점
- − Requires a compilation step (Dart Sass or build tool)
- − Native CSS custom properties and nesting reduce the need for SCSS
- − Large projects can have complex dependency graphs
.SCSS 사용 시점
JSON은 API 데이터 교환, 설정 파일(package.json, tsconfig.json), 비정형 데이터 저장에 사용하세요.
기술 세부사항
JSON은 6가지 데이터 타입을 지원합니다: 문자열(큰따옴표), 숫자, 불리언(true/false), null, 객체({}), 배열([]). 키는 항상 문자열이어야 합니다. 주석, 후행 쉼표는 허용되지 않습니다. JSON5와 JSONC는 이러한 제한을 완화합니다.
역사
Douglas Crockford는 2002년 JSON을 경량 데이터 교환 형식으로 공식화했습니다. RFC 8259(2017)가 현재 사양입니다. JSON의 단순성 덕분에 XML을 대체하여 웹 API 데이터 형식의 표준이 되었습니다.