Is there a way to get logs in JSON format for an API call from a Springboot Application?
Setting output_mode parameter to output_mode=JSON in the API call should return the results in JSON format. You can see the documentation here: Basic concepts about the Splunk platform REST API - Splunk Documentation