Developer Cheat Sheets
Quick reference guides for data formats, syntax, and best practices
💡 Tip: Use your browser's print function (Ctrl/Cmd + P) to save as PDF
📋
JSON Cheat Sheet
Basic Syntax
Object
{ "key": "value" }Array
["item1", "item2"]String
"text"Number
42 or 3.14Boolean
true or falseNull
nullCommon Patterns
Nested Object
{
"user": {
"name": "John",
"age": 30
}
}Array of Objects
[
{"id": 1, "name": "Item 1"},
{"id": 2, "name": "Item 2"}
]Best Practices
✅ Use double quotes for strings
✅ No trailing commas allowed
✅ All keys must be strings
❌ No comments in JSON
❌ No undefined values
DataValidate Pro • datavalidate.pro • Privacy-first developer tools
📄
YAML Cheat Sheet
Basic Syntax
Key-Value
key: valueString
name: John DoeNumber
age: 30Boolean
active: trueNull
value: nullList
- item1
- item2
- item3Common Patterns
Nested Object
user:
name: John
age: 30List of Objects
users:
- name: John
age: 30
- name: Jane
age: 25Multi-line String
description: |
This is a
multi-line stringBest Practices
✅ Use 2 spaces for indentation
✅ No tabs allowed
✅ Quote strings with special chars
✅ Use comments with #
❌ Don't mix tabs and spaces
DataValidate Pro • datavalidate.pro • Privacy-first developer tools
📊
CSV Cheat Sheet
Basic Structure
Header Row
name,age,cityData Rows
John,30,NYC
Jane,25,LAQuoted Values
"Smith, John",30,"New York"Empty Fields
John,,NYCSpecial Cases
Comma in Value
"Smith, John",30Quote in Value
"He said ""Hi""",30Newline in Value
"Line 1
Line 2",30Best Practices
✅ Always include header row
✅ Quote fields with commas
✅ Use consistent delimiters
✅ Escape quotes by doubling
❌ Avoid mixing delimiters
DataValidate Pro • datavalidate.pro • Privacy-first developer tools
🔐
JWT Cheat Sheet
Structure
Format
header.payload.signatureHeader Example
{
"alg": "HS256",
"typ": "JWT"
}Payload Example
{
"sub": "1234567890",
"name": "John Doe",
"iat": 1516239022
}Standard Claims
iss
Issuersub
Subjectaud
Audienceexp
Expiration Timenbf
Not Beforeiat
Issued Atjti
JWT IDSecurity Tips
✅ Use HS256 or RS256 algorithms
✅ Set expiration times
✅ Validate signature on server
❌ Never store secrets in JWT
❌ Don't use "none" algorithm
DataValidate Pro • datavalidate.pro • Privacy-first developer tools
🔍
Regex Cheat Sheet
Common Patterns
Email
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}URL
https?://[^\s]+Phone
\d{3}-\d{3}-\d{4}IP Address
\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}Character Classes
\d
Any digit (0-9)\w
Word character (a-z, A-Z, 0-9, _)\s
Whitespace.
Any character[abc]
Any of: a, b, or c[^abc]
Not a, b, or cQuantifiers
*
0 or more+
1 or more?
0 or 1{n}
Exactly n times{n,}
n or more times{n,m}
Between n and m times DataValidate Pro • datavalidate.pro • Privacy-first developer tools
🌐
HTTP Status Codes
2xx Success
200
OK - Request succeeded201
Created - Resource created204
No Content - Success, no body4xx Client Errors
400
Bad Request - Invalid syntax401
Unauthorized - Auth required403
Forbidden - No permission404
Not Found - Resource missing422
Unprocessable Entity - Validation failed5xx Server Errors
500
Internal Server Error502
Bad Gateway503
Service Unavailable DataValidate Pro • datavalidate.pro • Privacy-first developer tools
📥 How to Save as PDF
On Desktop
- Click "Print/Save as PDF" button above
- Or press Ctrl+P (Windows) or Cmd+P (Mac)
- Select "Save as PDF" as the destination
- Click "Save" and choose location
On Mobile
- Tap the three dots menu (⋮)
- Select "Share" or "Print"
- Choose "Save as PDF" or "Print to PDF"
- Save to your device
