title: PHP Array Output for Parsing in Java?
body: <p>I have a class, written in Java, that makes a call to a PHP server for information on a series of items. This series should be returned in some sort of collection, such as in an array, a JSON encoded array, etc...</p>
  
  <p>Is there a way that I could have PHP return the collection of data in some way that it could be easily parsed in Java and utilized as either an array or object? For example, if I JSON encode or serialize my PHP array, can it be easily JSON decoded or unserialized and then used as an array?</p>