# P_loadjson
## Syntax:
@loadjson(**{filename}**, **{targetArray}**)
## Use Case:
Loads a JSON array from the local Data directory into an array variable.
Useful for restoring complex state or configuration across sessions.
## Arguments:
- **{filename}**   : The name of the json file (e.g. settings.json).
- **{targetArray}**: The name of the array to populate.
## Examples:
1. **/var {success} {@loadjson(settings.json, mySettings)}**
## See Also:
@savejson
