Read the type attribute from the json file