Tagged articles
3 articles
Page 1 of 1
Test Development Learning Exchange
Test Development Learning Exchange
Aug 9, 2024 · Fundamentals

Python JSON Handling: Encoding, Decoding, File I/O, Pretty‑Printing, Sorting, Custom Types and Non‑ASCII Support

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
Python JSON Handling: Encoding, Decoding, File I/O, Pretty‑Printing, Sorting, Custom Types and Non‑ASCII Support
FunTester
FunTester
Aug 8, 2019 · Backend Development

How to Pretty‑Print JSON in Java Console Without Plugins

This article explains why JSON output in a Java console is often unreadable, presents a custom method that formats and indents JSON strings with visual markers, provides the full implementation code, shows the resulting output, and notes its current limitations.

JSONPretty Printconsole
0 likes · 4 min read
How to Pretty‑Print JSON in Java Console Without Plugins