Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Json output for API

    Posted 06-05-2025 18:19

    Jan_Jahnsen | 2021-05-18 20:38:39 UTC | #1

    When running the API commands in Developer example /api/v2/routing/queues/members. Instead of getting the json reply in a line broken up format, I get one single line with no returns. Do actually read it I have to select it and put it into an external json formatter.

    Does anyone have a way to change what that output is giving me? I am using Chrome. I only have the issue if I am using chrome. It appears correctly if I am using firefox.


    tim.smith | 2021-05-18 21:02:17 UTC | #2

    What you're describing sounds normal. API responses are optimized for consumption by applications, not humans. Responses intentionally exclude non-functional characters, like whitespace, in order to reduce the payload size.

    You can find a multitude of JSON formatters on the internet for any environment you prefer, including browser extensions for chrome. The only tool officially endorsed by Genesys is our own Developer Tools. The API Explorer tool offers postman-esque functionality and formats the responses for human consumption. You can access it at https://developer.genesys.cloud/developer-tools/#/api-explorer.


    Jan_Jahnsen | 2021-05-19 01:47:44 UTC | #3

    Interesting. If I use firefox I see it the way I would expect but just not in chrome. I am using the api-explorer. It just shows like


    Jan_Jahnsen | 2021-05-19 01:48:26 UTC | #4

    But if I am in Firefox I get:


    system | 2021-06-19 01:48:28 UTC | #5

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 10955