Its pretty straight
import DATA from './data.json';
Now use your DATA.gender
If dosen't work, try export default instead of export const .
Also, save that json file as .js
PS : Alternatively, you can use json-loader module to manage json imports.