title: How to encode json in Java?
body: <p>My Java client has to encode values as Json (using the equivalent of php's <code>json_encode</code>), so that a remote PHP server can open it up with <code>json_decode</code>.  What built in method and library should be used for this encoding?</p>