data = f'"{name}": ' + "{" + tmp + "},"
I have such a string, but I need so that I can use the string {} as for a variable or just as a string. What do I need to do for this?
You need double curly brackets
>>> print(f"{{}}") {}