Creating a Function to Read the JSON Object