Switched to using the Snap framework over Happstack due to better support for JSON APIs.