filmov
tv
JSON Parse and Stringify Coding Solution | #Nagarro #InputOutputCampus

Показать описание
JSON Parse and Stringify Coding Solution in C++
JSON is a syntax for storing and exchanging data. The rules for a JSON object are as follows:
• Data is separated by commas, curly braces hold objects (name/value pairs) and square brackets hold arrays of values.
• Values can be literals, objects or arrays.
• Data starts at level 1. If a level 1 key has an object as value, then the keys in that object are at level 2.
You have a huge collection of JSON objects and some of the JSON objects have several levels. Also, the stringified JSON may not be a perfect JSON. Some objects are very deep (having a large maximum level). Find the maximum level of any JSON object.
Example-1
Input : [[[[]]]]
Output : 4
Explanation : As the maximum level of depth is 4
Example-2
Input : {“a” : {“name” : “john”}}
Output : 2
Explanation : As the maximum level of depth is 2
---------------------------------------------------------------------------------------------------------------------
Please SUBSCRIBE to our YOUTUBE channel.
-------------------------------------------------------------------------------
#jsonparse
#nagarro
#nagarrocoding
#latestnagarrocoding
#nagarrointerview
Tags:
---------
JSON Parse,
json parse nagarro coding,
json parse solution,
nagarro coding questions,
nagarro coding questions 2021,
nagarro coding test,
nagarro coding round,
nagarro coding questions ,
nagarro coding test questions,
nagarro coding round questions,
nagarro coding interview questions,
nagarro placement coding questions,
nagarro online coding test questions,
coding questions asked in nagarro,
input output campus,
json parse and stringify coding solution,
nagarro coding questions geeksforgeeks
JSON is a syntax for storing and exchanging data. The rules for a JSON object are as follows:
• Data is separated by commas, curly braces hold objects (name/value pairs) and square brackets hold arrays of values.
• Values can be literals, objects or arrays.
• Data starts at level 1. If a level 1 key has an object as value, then the keys in that object are at level 2.
You have a huge collection of JSON objects and some of the JSON objects have several levels. Also, the stringified JSON may not be a perfect JSON. Some objects are very deep (having a large maximum level). Find the maximum level of any JSON object.
Example-1
Input : [[[[]]]]
Output : 4
Explanation : As the maximum level of depth is 4
Example-2
Input : {“a” : {“name” : “john”}}
Output : 2
Explanation : As the maximum level of depth is 2
---------------------------------------------------------------------------------------------------------------------
Please SUBSCRIBE to our YOUTUBE channel.
-------------------------------------------------------------------------------
#jsonparse
#nagarro
#nagarrocoding
#latestnagarrocoding
#nagarrointerview
Tags:
---------
JSON Parse,
json parse nagarro coding,
json parse solution,
nagarro coding questions,
nagarro coding questions 2021,
nagarro coding test,
nagarro coding round,
nagarro coding questions ,
nagarro coding test questions,
nagarro coding round questions,
nagarro coding interview questions,
nagarro placement coding questions,
nagarro online coding test questions,
coding questions asked in nagarro,
input output campus,
json parse and stringify coding solution,
nagarro coding questions geeksforgeeks
Комментарии