I'm coding an API library in Python, I always chose **json** before as the response format but this API provides **text** and **json** formats, I'm not asking which one is easier or better, I want to know the advantages and the disadvantages of using both as I only worked with json before.

I thought about using **text** format, it's very easy to parse but the only thing I thought about was the nested elements, but after checking the example they're separated with underscores `_` for example:

```
name=VALUE
lastname=VALUE
age=VALUE
contact_email=VALUE
contact_phone=VALUE
contact_mobile=VALUE

```

same **json** response:

```
{
    "name": "VALUE",
    "lastname": "VALUE",
    "age": "VALUE",
    "contact": {
        "email": "VALUE",
        "phone": "VALUE",
        "mobile": "VALUE"
    }
}

```

So is there any advantages or disadvantages of using **text** over **json** or the other way around ?