I have a dictionary with some data and I want to get all the values of each occurrence of specific key name. Is there any predefined method to search for a key in JSON object for all occurrences or need to write user defined method?
Sample data
[{"id":"23","name":"sunny","className":"2","class":{"className":"1","class2":{"className":"3","class":{"className":"4"}}}}]
this is sample data and I want to get all the values with key 'className'