PHP convertit le tableau à l'objet JSON
$myArr = array("apple", "banana", "mango", "jackfruit");
$toJSON = json_encode($myArr);
echo $toJSON;
Lazy Loris
$myArr = array("apple", "banana", "mango", "jackfruit");
$toJSON = json_encode($myArr);
echo $toJSON;
ArrayList<String> list = new ArrayList<String>();
list.add("foo");
list.add("baar");
JSONArray jsArray = new JSONArray(list);
[{"Rut": "177701357-9","Clave": "22222"},{"Rut": "177701357-9","Clave": "22222"}]