Reading JSON dictionary directly from hard disk

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Jackal

I need to read large about of data and currently i am doing that from .txt file and then parsing text string to JSON dictionary, the problem is that i want to make this in the most optimized way for ram. I suppose that after parsing string to json godot is storing result in ram memory and i would like that data can be read directly from script that is from hard-drive memory.
So my question is what is the best way to achieve this supposing that i didn’t say something stupid earlier?

:bust_in_silhouette: Reply From: hungrymonkey

Just add it to your project.

Godot Resource loader only loads it once and saves the reference.

When you call load again, it will reference the last save.