This format is called JSON, it's the most common format when working with apis.
If you want to see the data structured, you can use https://jsoneditoronline.org/ for example.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
What we call this type of data in api array or object
{ "success": "0", "post": { "username": [ "The username has already been taken." ], "email": [ "The email has already been taken." ] } }
and this one
{ "success": "1", "post": { "user_id": 35783, "name": "vicky", "email": "[email protected]", "phone": "7678278765", "token": "5652432d00bdb28357fb71540a23e704a45a90076815bf9801" } }
@RAVIAWASTI - They are surrended with curly braces {}, so they are both JSON objects https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON.
A JSON object can have nested JSON objects inside, that's why you have more {} inside.
And in the first case this JSON object has 2 arrays of 1 item inside:
[ "The username has already been taken." ] // First array
[ "The email has already been taken." ] // Second array
Please or to participate in this conversation.