JsonKit
  • Menu ▾
    • About
    • Home
    • Tool Tutorials
  • About
  • Home
  • Tool Tutorials

XML Formatter: Building a Parser with State Machine

2026-05-12
#json  #api  #format 

Dealing with minified XML from third-party APIs is painful. Most online tools are either bloated or can’t handle special nodes like CDATA and comme…

[Read more]

Word Counter: Unicode Handling and Regex Edge Cases in Mixed Chinese-English Text

2026-05-12
#javascript  #regex 

Writing articles, tweets, documentation—you always need to count words. Many word counters exist, but when mixing Chinese and English, the results …

[Read more]

From Handshake to Heartbeat: Building a WebSocket Online Testing Tool

2026-05-11
#javascript  #test 

Recently, I was developing a real-time chat feature with WebSocket on the backend. Debugging was painful—browser DevTools’ Network panel shows WebS…

[Read more]

Browser-Based Web Screenshots: From getDisplayMedia API to Canvas Implementation

2026-05-11
#api  #canvas  #html 

I recently built a web screenshot tool, thinking it’d be straightforward. Spoiler: I hit several gotchas. Here’s what I learned, in case you’re tac…

[Read more]

UUID Generator Algorithms: From v1 to v4 Implementation

2026-05-10
#generator  #database 

Building a distributed system recently, I needed globally unique IDs. Started with auto-increment database IDs, then hit a wall with sharding—diffe…

[Read more]

URL Encoding Decoded: From Percent Signs to encodeURIComponent

2026-05-10
#encoding 

Last week, I was debugging a payment callback where URL parameters were double-encoded, causing order ID parsing failures. It turned out many devel…

[Read more]

Unit Converter: From Floating-Point Precision to Temperature Offsets

2026-05-09
#javascript  #converter 

I recently needed to convert between inches and centimeters for a project. Wrote a quick formula, but the result didn’t match the design specs—that…

[Read more]

How LLM Token Counting Works: Building a Client-Side Token Estimator

2026-05-09
#api  #http 

Every time you call a GPT or Claude API, you’re paying by the token. But what exactly is a token, and how do you estimate token counts without load…

[Read more]

JavaScript Timezone Conversion: From Unix Timestamps to IANA Identifiers

2026-05-08
#javascript 

Recently built a cross-timezone meeting scheduler and stepped into quite a few timezone pitfalls. Let me share what I learned about JavaScript time…

[Read more]

Unix Timestamp Pitfalls: A Complete Guide to Timestamp Conversion

2026-05-08
#tutorial 

Last week, I was debugging a production issue. The logs were filled with numbers like 1745678901. Our new intern looked confused: “What are these…

[Read more]
[Older posts] >
© 2025 JsonKit :: Theme made by panr