How to access JSON payload from an endpoint and use it in javascript?

can you share the editor ?