Fix wrong id for json files

JSON files receive 'string' as context in this function, while original id is preceding-dot version '.string', so on update no units found and error thrown.