i need a way to exchange custom objects between android and php, im using ksoap for communication but i need to know how to encode a class like:
"user"
-name
-pass
-Person(Object)
-SomeArray<SomeObjectType>
is there any function/library that allows me to do something like
php
$user = getUser($id);
return = encode($user);
Android
User = (User)decode(getUserWS(id));
exist something like that? im trying to use json_encode
, but returns only {} and whit var_dump
i get a lot of garbage.
some help for a new programmer please? tks