How to create localhost http request to call json file in settings.js

Hi,

Can anyone help me with this?

I want to create a local JSON file(10 catalgoues) from 3000+ catalgoues and fetch that JSON content in the palette.

In other words, What is the procedure to create like 'http://localhost:1880/filename'