1. Fixed a bug where JSON objects weren't properly parsed.
2. Added content type to Ajax request.
3. Added content type to Ajax mock code.