Read java object in shell script

Hi All,
Can anybosy please guide me how can I send a complete java object which has multiple values inside it to shell script and read the same from the script.

Thanks in advance
Neha