JSON
does not round trip
Godot’s JSON implementation cannot round trip values. For example, this code…
…prints this output:
String: "(3, 2)"
Value: (3, 2)
Value is String? true
Value is Vector2i? false
Instead of storing data in JSON, consider using store_var
and get_var
in FileAccess
instead (see: Arbitrary Code Execution in Godot serialization).