Skip to content

Instantly share code, notes, and snippets.

@YeOldeDM
Last active February 5, 2016 03:35
Show Gist options
  • Save YeOldeDM/a6ce9a0053da1fd4f927 to your computer and use it in GitHub Desktop.
Save YeOldeDM/a6ce9a0053da1fd4f927 to your computer and use it in GitHub Desktop.
+# load from a file with several dicts
+static func loadJsonMult(path):
+ var curfile = File.new()
+ if ( !curfile.file_exists(path)):
+ logd(str("ERR: loadJson file doesn't exist ",path))
+ return null
+ curfile.open(path,File.READ)
+ logd(str("MSG: loadJsonMult from ",path))
+ var data = {}
+ while ( !curfile.eof_reached()) :
+ data.parse_json(curfile.get_line())
+ return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment