Hi @Dillibabu77
For example your sling:resourceType = {"myproject/components/mycomponent"} and extension is myjson
then, drag the component in any of your page. get the location of your component as shown below.
/content/myproject/en/home/jcr:content/root/content/content/mycomponent
Then, go to sling servlet resolver part. Select the below line.
/content/myproject/en/home/jcr:content/root/content/content/mycomponent.myjson
Let me know if this helps you.