Tagged articles
6 articles
Page 1 of 1
FunTester
FunTester
Nov 19, 2021 · Backend Development

Simplify Complex JSON Creation in Java with Double‑Brace Initialization

When integrating a third‑party API, building deeply nested JSON structures can become cumbersome, but using Java's double‑brace initialization for maps and JSONObjects dramatically reduces boilerplate code while keeping the payload readable and maintainable.

BackendCode OptimizationJSON
0 likes · 5 min read
Simplify Complex JSON Creation in Java with Double‑Brace Initialization
FunTester
FunTester
Oct 29, 2021 · Backend Development

Master Fastjson: Create, Modify, and Query JSON Objects in Java

This tutorial walks through using Fastjson to create, add, delete, retrieve, and manipulate JSON objects in Java, highlighting common pitfalls and showcasing advanced methods such as compute, computeIfAbsent, and custom iteration techniques.

JSONJavaTutorial
0 likes · 4 min read
Master Fastjson: Create, Modify, and Query JSON Objects in Java
FunTester
FunTester
Oct 28, 2021 · Backend Development

Adding Custom Methods to fastjson JSONObject Using Groovy MetaClass

This article demonstrates how to dynamically add custom methods to fastjson's JSONObject in Groovy by leveraging MetaClass and closures, providing code examples that simplify JSON traversal and output during API testing for developers.

DynamicMethodGroovyMetaclass
0 likes · 4 min read
Adding Custom Methods to fastjson JSONObject Using Groovy MetaClass
FunTester
FunTester
Aug 25, 2019 · Backend Development

Why HttpClient Skips Null Parameters and How to Fix It in Java

When using HttpClient for API testing, a JSONObject omits fields with null values, causing version parameters to be missing; initializing version strings to empty strings resolves the issue and ensures proper request payloads.

API testingHttpClientJava
0 likes · 5 min read
Why HttpClient Skips Null Parameters and How to Fix It in Java
FunTester
FunTester
Aug 23, 2019 · Backend Development

Utility Class for Counting Occurrences in Java/Groovy Using JSONObject

This article presents a reusable Java/Groovy utility class that leverages JSONObject's containKey method to count occurrences of values, offering multiple overloaded count methods for single objects, lists, and list elements, along with example code and usage notes.

Javacountingjsonobject
0 likes · 4 min read
Utility Class for Counting Occurrences in Java/Groovy Using JSONObject
Meituan Technology Team
Meituan Technology Team
Jan 5, 2018 · Mobile Development

Performance Optimization of JSON Serialization on Android: Replacing Gson with JSONObject and Mson

The article shows that replacing reflection‑heavy Gson with lightweight JSONObject for manual serialization and a compile‑time annotation‑processor generated library called Mson can cut JSON parsing and writing time to about one‑tenth, while maintaining compatibility and eliminating ProGuard rules for performance‑critical Android apps.

AndroidAnnotationProcessorGson
0 likes · 13 min read
Performance Optimization of JSON Serialization on Android: Replacing Gson with JSONObject and Mson