Fading Coder

An Old Coder’s Final Dance

Resolving HttpMediaTypeNotSupportedException in Spring MVC

Handling the HttpMediaTypeNotSupportedException Error When developing a web controller using the Spring MVC framework, you might encounter the following error: org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;charset=UTF-8' not supported This issue typically...

Using the nlohmann Open-Source JSON Library in C++: A Practical Guide

Introduction In the past, JSON processing in C++ was often handled using Qt's QJsonDocument and associated classess. However, this approach tends to be verbose and less elegant. For a more convenient and intuitive solution, many developers now rely on the open-source libray nlohmann/json. Highly reg...