Dealing with minified JSON from APIs is a pain. I’ve tried several online tools, but they’re either bloated with ads or lack basic features. So I b…
Posts for: #Javascript
JSON Diff Deep Comparison: From Recursive Traversal to Path Tracking
Recently migrated an API and needed to compare JSON response structures between old and new versions. Manual line-by-line comparison was painful, s…
JSON Compression: From stringify to Network Transmission Optimization
Recently, while optimizing API performance, I noticed the JSON responses were surprisingly large. Just a few records, yet the response was dozens o…
JavaScript Obfuscator: From String Encryption to Control Flow Flattening
Recently I’ve been working on frontend security hardening and dove deep into JS code obfuscation. Turns out it’s way more than “rename variables to…
JavaScript Formatter Implementation: From String Parsing to AST Beautification
Author: JsonKit Team
Canvas Image Watermark Implementation: From Positioning to Tiled Patterns
Adding watermarks to images is a common requirement—copyright protection, brand visibility, you name it. Recently built an online watermark tool, a…
Canvas Transform Matrix for Image Rotation: From translate/rotate to Operation Queues
Recently I worked on a feature where users upload images and can rotate or flip them, combining multiple operations. For example: rotate 90° clockw…
From Canvas to Crop Box: Building an Online Image Cropping Tool
Recently I needed to crop user-uploaded avatars for a project, with support for drag-to-adjust crop areas. I looked at a few existing libraries—eit…
Date Calculator: From Date Object Pitfalls to Workday Optimization
I recently needed date calculations for a project. Thought new Date() with some arithmetic would do—turned out to be a minefield of edge cases. H…
From cURL to Multi-Language Code: Building a cURL Converter
When debugging APIs, I often find myself using the “Copy as cURL” button in browser DevTools. The copied command is convenient, but when it’s time …