I am trying to load a local JSONfile of two ways.
This is my json file:
{ \"imgsesion\": \"fa_closesesion.png\", \"texthome\": \"volver a la home
This happens because you are requesting a JSON file asynchronously, you can handle with safe navigation operator or using ngIf,
{{contentGeneral?.menu?.submenu?.link1?.text1}} {{contentGeneral?.menu?.submenu?.link1?.text2}}
or simply import the JSON file in your component and assign sampleJSON.
import "sampleJSON" from "./sampleJSON"