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, consider using store_var
and get_var
in FileAccess
(see also: Arbitrary Code Execution in Godot serialization)