Function crackFileTypeFromJSON