Answers for "how to count number of records in json"

0

how to count number of records in json

'''
USE len() TO COUNT THE ITEMS IN A JSON OBJECT
Call len(obj) to return the number of items in a JSON object obj.
'''

print(a_json_object)
'''OUTPUT:													'''
'''{'first_key': [1, 2, 3], 'second_key': 'second_value'}	'''
length = len(a_json_object)

print(length)
'''OUTPUT:													'''
'''2														'''
Posted by: Guest on July-07-2021

Code answers related to "how to count number of records in json"

Python Answers by Framework

Browse Popular Code Answers by Language