In this article, we will learn how to return nested JSON in C#. JSON objects are written in key/value pairs.…