ADVERTISEMENT
Google AdSense Slot (headerLeaderboard)

Set your Publisher ID in src/config/ads.ts to display live ads.

JSON Data Architecture Tutorial• 6 min read

Syntax Rules & Supported Data Types

Master the 6 valid JSON data types, quote rules, and why trailing commas cause parse crashes.

The 6 Valid JSON Data Types

1String (MUST use double quotes "key").
2Number (Integer or float, no NaN or Infinity).
3Boolean (true or false).
4Null (null).
5Array ([...]).
6Object ({...}).

Functions, Dates, and undefined are NOT permitted in valid JSON!

ADVERTISEMENT
Google AdSense Slot (inContentBanner)

Set your Publisher ID in src/config/ads.ts to display live ads.

Test Yourself With Exercise

+15 XP

Which of the following data types is strictly prohibited in valid standard JSON?