I am aware of the 'Inspect' button on the web interface. However, is there any way to convert KQL to elastic query json using API or some elastic lib?