Added funciton to determine basic structure of json object