JSON-RPC 2.0 Base with thread-safe parsing

JSON-RPC 2.0Just when you think a piece of software has stabilised and there’s nothing more to add or change and something crops up to disturb this 🙂

The other day I received a report by Giancarlo Barresi, who had observed concurrency problems with the JSON-RPC 2.0 Base library under heavy load. It turned out that my message parsing was not thread-safe, to which today I released a fix under version 1.15. To those of you who are new to my blog, JSON-RPC 2.0 Base is a simple Java library for parsing, representing and serialising JSON-RPC 2.0 messages.

Giancarlo also pointed me to a more efficient JSON parser implementation, called JSON Smart, which is interface compatible with the currently used JSON.simple, but with better performance. JSON Smart’s benchmarks look impressive on paper, but I want to do some testing myself before I commit to a change in the underlying JSON library.

I have also noticed that JSON.simple development has virtually stopped now, despite there being a number of outstanding enhancement suggestions and bug reports. Which is another reason to consider switching to JSON Smart.

Stay tuned!