Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

typescript read json file

import {default as a} from "config.json";
config.targetKey
// this requires `"resolveJsonModule": true` in tsconfig.json
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #read #json #file
ADD COMMENT
Topic
Name
8+9 =