{
    "name": "zhangsan",
    "sex": "nan",
    "data": [{
        "bb":"2",
        "aa": "1"
    }, {
        "aa": "3",
        "bb": "4"
    }]
}
how to sort the above json objects (data is an array) into the following format according to ascii
data=[{bb=2, aa=1}, {aa=3, bb=4}]&name=zhangsan&sex=nan{
    "name": "zhangsan",
    "sex": "nan",
    "data": {
        "bb":"2",
        "aa": "1"
    }
}
how to sort the above json object (data is the object) into the following format according to ascii
data=aa=1&bb=2&name=zhangsan&sex=nan