Sphere
Log in Join
☆ 8

Save files: JSON or binary in Godot?

My game has about 200 inventory items and settings. JSON is easy to read while debugging. Is there a reason to use a binary format instead?

⚑ Report

3 replies

☆ 0
S Sofia T. ·2026-10-18#1

At 200 items JSON is fine. Use FileAccess.open, store_string, and include a version field so you can migrate old saves.

⚑ Report
☆ 0
R Rafa ·2026-10-18#2

When does JSON become a problem?

⚑ Report
☆ 0
G glitch99 ·2026-10-18#3

When saves are several megabytes or contain binary data such as images. Then use var_to_bytes or a packed format and keep a JSON export for debugging.

⚑ Report
Log in to reply.