Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Spyrex |
I want to exchange the data between clients using dictionaries.
I am sending the string of “to_json(DICTIONARY).to_utf8()” (That prints the string of the dictionary correctly with the quotation marks) and when I receive the packet and made it to a string using “packet.get_string_from_utf8()” Godot can’t make the string to a dictionary using “parse_json(packetStr)”
because it prints the dictionary string without quotation makrs.
Does anyone have an idea how to solve that problem?