Server sending and getting now work correctly.

New JSON format.
JSON returned from server now properly formatted.