Tagged articles
data serialization
23 articles · Page 1 of 1
This article compares JSONL (JSON Lines) with regular JSON, explaining how line-delimited records enable memory-efficient streaming for logs, machine learning datasets, and ETL pipelines, while detailing tool support in pandas, Spark, and Hugging Face, and clarifying when to stick with standard JSON.
Apache SparkETLHugging Face
0 likes · 21 min read

Using protobuf‑generated .pb.go structs directly in Go business code introduces zero‑value ambiguities, naming mismatches, and loss of encapsulation, leading to bugs and technical debt; the article explains these pitfalls with concrete examples and shows how to keep protobuf at the transport layer while mapping to clean domain models.
Best PracticesGoProtobuf
0 likes · 11 min read

The article explains how the Token‑Oriented Object Notation (TOON) format reduces token usage by 30‑60% and improves accuracy compared to JSON when feeding structured data to large language models, offering concrete syntax, benchmark results, code examples, and guidance on when to adopt it.
JSON alternativeLLMPython
0 likes · 10 min read

The article explains why JSON becomes a bottleneck in latency‑sensitive applications, compares four high‑performance binary serialization formats—Protocol Buffers, FlatBuffers, MessagePack, and CBOR—and provides practical guidance on selecting and deploying the right format to dramatically reduce latency, payload size, and CPU usage.
CBORFlatBuffersMessagePack
0 likes · 11 min read

This article explains how the TOON data‑serialization format reduces token usage and improves accuracy for large language model calls compared with traditional JSON, provides benchmark results, outlines scenarios where TOON is advantageous or unsuitable, and shows Java integration examples.
JavaLLMdata serialization
0 likes · 6 min read

This article provides a detailed tutorial on JSON fundamentals and demonstrates how to convert between Java objects, collections, maps, and JSON strings or objects using Alibaba's fastjson library, covering key‑value and array structures, code examples, and practical conversion scenarios.
BackendFastjsonJSON
0 likes · 11 min read

This tutorial presents a thorough collection of Python JSON handling techniques, covering basic conversion, file read/write, data manipulation, merging, pretty printing, nested structures, custom serialization, batch processing, backup creation, performance optimization with ujson, API interaction, aggregation, error handling, and processing of commented JSON files.
data serializationfile-io
0 likes · 10 min read

This tutorial introduces PyYAML, explains how to install it, and provides twelve practical Python examples covering reading, writing, and manipulating YAML files, strings, lists, nested structures, complex data types, tags, anchors, streams, and environment variables.
ConfigurationPythondata serialization
0 likes · 8 min read

This article reviews the most downloaded Python packages on PyPI over the last year, explaining each library's purpose, key features, usage examples, and why they are popular among developers, covering tools for HTTP, compatibility, AWS, data handling, security, and more.
AWSPyPIPython
0 likes · 16 min read

This tutorial demonstrates how to encode Python objects to JSON strings, decode JSON back to Python, read and write JSON files, pretty‑print and sort JSON output, handle special types with custom encoders, preserve key order, manage non‑ASCII characters, and process binary JSON data using the built‑in json module.
File I/OJSONPretty Print
0 likes · 6 min read

This article examines how server‑side rendering can serialize normally non‑serializable data such as Promises, Dates, RegExp, and BigInt, comparing Remix’s defer‑based approach with Turbo‑Stream’s encode/decode method, and discusses their mechanisms, benefits, and challenges.
ReactRemixSSR
0 likes · 26 min read

This article explains three common methods—eval, ast.literal_eval, and json.loads—for converting quoted Python strings into executable code or data structures, outlining their advantages, disadvantages, and appropriate use cases.
Securityast.literal_evaldata serialization
0 likes · 5 min read

This guide walks you through what Protocol Buffers are, how to install the protoc compiler on macOS, Windows, and Python, explains the proto3 syntax—including messages, fields, enums—and demonstrates compiling .proto files and using the generated code in Python, while highlighting Protobuf's efficiency, extensibility, and multi‑language support.
ProtobufProtocol BuffersPython
0 likes · 7 min read

This article compares Google’s Protocol Buffers and the Swagger/OpenAPI framework, detailing their features, data formats, use cases, flexibility, development workflows, and why Google created protobuf, helping developers choose the right tool for high‑performance data serialization or comprehensive API documentation.
API DesignOpenAPIProtocol Buffers
0 likes · 7 min read

This article explains what Protocol Buffers (ProtoBuf) are, how they work, their key advantages over JSON and XML, practical usage patterns with code examples, compression mechanisms, real‑world applications, and best practices for maintaining compatibility in modern software systems.
binary protocoldata serializationgRPC
0 likes · 16 min read

This article explains the fundamentals of JSON, its syntax rules, and demonstrates how PHP's json_encode and json_decode functions convert between arrays and JSON strings, including examples of sequential, non‑sequential, and multidimensional arrays, and the effect of the associative‑array option.
BackendPHPdata serialization
0 likes · 4 min read

This tutorial demonstrates how to use Go's standard and third‑party libraries to parse and generate YAML, JSON, and XML files, covering data structures, unmarshalling, marshalling, handling maps, and producing readable output with code examples.
GoJSONXML
0 likes · 17 min read

This article provides a comprehensive overview of YAML, covering its purpose, concise syntax, indentation rules, data structures, scalar types, built‑in tags, special types, and examples of JavaScript‑specific and custom types, making it a valuable reference for developers working with configuration files.
Configurationdata serializationprogramming
0 likes · 8 min read

This article introduces Google Protocol Buffers, explains its binary encoding principles such as Tag‑Length‑Value, Varint and ZigZag, compares its efficiency with JSON/XML, and provides a step‑by‑step demo of building a Protobuf‑based WebSocket communication system using Node.js, protobufjs and a simple HTTP server.
Node.jsWebSocketbinary protocol
0 likes · 19 min read

Apache Avro is a high‑performance binary data serialization system originating from Hadoop that uses JSON‑defined schemas to enable compact storage, efficient network transfer, container file formats for MapReduce, and RPC communication without requiring code generation or explicit field numbers.
HadoopRPCavro
0 likes · 9 min read

This article introduces Apache Thrift, explaining its open‑source RPC framework, IDL‑based code generation, protocol and transport layers, and its advantages for high‑performance data exchange in mobile advertising engines, while noting practical considerations such as static schema updates and usage of TFileTransport.
RPCThriftbackend development
0 likes · 5 min read

The article explains the Hermes data‑communication protocol built on MessagePack, detailing its lightweight design, language‑independent object serialization, binary format extensions, client‑server serialization workflows, object‑tree construction, and traversal strategies that together enable efficient data exchange for the Lest distributed cache system.
Backend ProtocolMessagePackObject Tree
0 likes · 24 min read

This article introduces YAML as a human‑friendly data serialization format, compares it with XML and JSON, shows basic syntax for objects, arrays, strings, references, type conversion and comments, and provides practical usage examples in JavaScript, Node.js and Java.
JavaJavaScriptNode.js
0 likes · 7 min read
