Ie, we need an analogue of the php function of the json_encode() .

C correct processing of nesting of arrays ..

    2 answers 2

    1. You need to download and connect to the project libu with google-gson .

    2

    Gson gson = new Gson ();

     String json = gson.toJson(obj); 
    • excellent! this is what i needed. An example of use is also quite relevant. - deivan_

    To help you come: