Lines Matching full:json
91 * // dev.json is a file containing a valid json object config for dev environment
92 * // dev.json is a file containing a valid json object config for test environment
93 * // prod.json is a file containing a valid json object config for prod environment
94 * // invalid.json is a file with a malformed json object
97 * let validConfigFileMap = {dev: 'dev.json', test: 'test.json', prod: 'prod.json'};
98 * let invalidConfigFileMap = {dev: 'dev.json', test: 'test.json', invalid: 'invalid.json'};
100 * // asynchronous function that reads a json file and parses the contents as json object
105 * configs[key] = JSON.parse(data);
119 * // configs is now a map of JSON data, e.g.
120 * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}
128 * // JSON parse error exception
138 * // configs is now a map of JSON data, e.g.
139 * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}
150 * // JSON parse error exception
158 * // configs is now a map of JSON data, e.g.
159 * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}
174 * // JSON parse error exception