My test data is currently within my html such :
var jsonStatus = [
{ "myKey": "A", "status": 0, score: 1.5 },
{ "myKey": "C", "status": 1, score: 2.0 },
{ "myKey": "D", "status": 0, score: 0.2 },
{ "myKey": "E", "status": 1, score: 1.0 },
{ "myKey": "F", "status": 0, score: 0.4 },
{ "myKey": "G", "status": 1, score: 3.0 },
];
But my data will eventually be ~20.000 entries, so I wish to externalize it into a statusStarter.json file (local or external), that I load once at the apps first start. Once into the client localStorage I can read/write locally with ease! :] Also:
1. How to load externalized json into localStorage (as string) ?
2. How to keep conditional ? (avoid to reload each time)