I am working on a AEM component where my field data (drop down values, dynamic input values etc) is getting fetched from json file. This json is called from jquery ready function.
I am getting 404 error on my browser for this json response. I know AEM reserves the use of ".json" file, Is there a alternate way I can fetch these values ?
the way my json is called as
as per discussion in comments
I feel that your jsonfile is sth you keep statically within the component itself
/app/yourapp/components/thecomponent/data/myjsonFile.jsonwhilst your requesting something within your
/content/yourappsection where this file is just not present
moved my json data file inside the component folder and it worked