</>CodeScrub

Blog

Guides, tutorials, and references for developers.

How to Read and Debug API JSON Responses

A practical guide to reading messy API responses, spotting common issues, and extracting the data you need. Includes curl tips, browser DevTools tricks, and formatting tools.

8 min read
  • json
  • api
  • debugging

TOON vs JSON: Which Format Should You Use for AI Prompts?

TOON saves 30-60% tokens over JSON when sending data to LLMs. But JSON is universal. Here's how to choose based on your use case.

7 min read
  • toon
  • json
  • ai

What Is JSON Pretty Print (and How to Do It Instantly)

JSON pretty print adds indentation and line breaks to make JSON readable. Here's how to do it online, in code, and from the command line.

5 min read
  • json
  • formatting
  • pretty-print

JSON vs CSV: When to Use Which Format

JSON and CSV serve different purposes. Here's a clear breakdown of when to use each, with conversion tips for when you need to switch between them.

7 min read
  • json
  • csv
  • data

How to Schedule Cron Jobs in GitHub Actions, AWS, and Kubernetes

Copy-paste cron configurations for GitHub Actions, AWS EventBridge, Google Cloud Scheduler, Kubernetes CronJobs, and Vercel. Platform-specific syntax and gotchas.

9 min read
  • cron
  • github-actions
  • aws

10 Regex Patterns Every Developer Should Know

A practical cheat sheet of 10 regex patterns you'll use again and again — email, URL, phone, IP address, dates, passwords, and more. Copy-paste ready with explanations.

9 min read
  • regex
  • reference
  • patterns

7 Common JSON Errors and How to Fix Them

Trailing commas, single quotes, unquoted keys — here are the 7 most common JSON syntax errors developers make and exactly how to fix each one.

6 min read
  • json
  • debugging
  • errors

SQL Formatting Best Practices for Teams

A practical SQL formatting standard your team can adopt today. Covers keyword casing, indentation, JOIN alignment, and naming conventions with before/after examples.

8 min read
  • sql
  • formatting
  • best-practices

How to Convert Nested JSON to CSV (With Examples)

Most JSON-to-CSV tools break on nested objects. Learn how dot notation flattening works and convert nested JSON to CSV instantly.

7 min read
  • json
  • csv
  • data

Regex for Email Validation: The Right Pattern (and Why Most Are Wrong)

Most email regex patterns are either too strict or too loose. Here's a practical pattern that works, plus common mistakes to avoid.

6 min read
  • regex
  • validation
  • email

How to Reduce LLM API Costs by 40% with TOON Format

TOON format cuts LLM token usage by 30-60% compared to JSON. Learn what TOON is, how it works, when to use it, and how to convert your data instantly.

7 min read
  • toon
  • llm
  • ai

Cron Expression Examples for Every Common Schedule

A complete reference of cron expression examples with plain-English explanations. Copy-paste ready cron schedules for every use case — from every minute to yearly jobs.

7 min read
  • cron
  • scheduling
  • devops