Added JSON serialisation and a proper response format to AccountBackend