Quotation marks get removed when sending a dictionary casted to a String in a packet

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: 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? :frowning: