π Structure 1️⃣ Setting the Scene — The Confusion Moment π€ "I thought JSON was just a HashMap in a superhero costume!!" Nope! It’s like saying Spring Boot is just Spring MVC with coffee ☕ — there’s way more going on. 2️⃣ π‘ What is a HashMap? Java-only data structure Stores key-value pairs in memory (heap) Keys can be anything — Integer, String, custom objects (if hashCode() & equals() are implemented properly) Not meant for network transfer π¦ Example: Map<Integer, String> studentMap = new HashMap<>(); studentMap.put(101, "Anand"); studentMap.put(102, "Priya"); This stays inside your JVM. If you try to send it over HTTP as-is… good luck explaining it to a Python service. ππ₯ 3️⃣ π What is JSON? Language-independent data format (Java, Python, JS, Go, you name it) Stores only String...
A cozy space where I share my daily Java learnings, issues, and solutions.