Not Json, I need Text format
Quote from Joe Doe on 15/12/2023, 13:46hello, it's me again 🙂
When I send a request to "http://localhost:54664/sample", it returns me in json format. But it should come to me in text format. Taking json and translating it extends my processing time. Is there a structure like "http://localhost:54664/sample?format=string" ?
hello, it's me again 🙂
When I send a request to "http://localhost:54664/sample", it returns me in json format. But it should come to me in text format. Taking json and translating it extends my processing time. Is there a structure like "http://localhost:54664/sample?format=string" ?
Quote from mm_dev on 16/12/2023, 14:14"Text" is not a format, just a way to encode values. JSON is a text-based format. What other format are you looking for?
"Text" is not a format, just a way to encode values. JSON is a text-based format. What other format are you looking for?
Quote from Joe Doe on 18/12/2023, 06:59I want to change "Content-Type". By default I get application/json format. I want to change it to "text/html".
I want to change "Content-Type". By default I get application/json format. I want to change it to "text/html".
Quote from mm_dev on 19/12/2023, 13:30Sorry, but exporting measurement data as HTML doesn't make much sense for an API. It would result in massive bandwidth and processing overhead, while not really adding anything useful (parsing HTML is way more complex than parsing JSON). If your plan is to save processing time, HTML is certainly not the way to go. The only benefit would be better compatibility with browsers, but that's hardly worth the downsides.
Sorry, but exporting measurement data as HTML doesn't make much sense for an API. It would result in massive bandwidth and processing overhead, while not really adding anything useful (parsing HTML is way more complex than parsing JSON). If your plan is to save processing time, HTML is certainly not the way to go. The only benefit would be better compatibility with browsers, but that's hardly worth the downsides.