diff --git a/lib/class-wp-json-users.php b/lib/class-wp-json-users.php
index <HASH>..<HASH> 100644
--- a/lib/class-wp-json-users.php
+++ b/lib/class-wp-json-users.php
@@ -179,6 +179,9 @@ class WP_JSON_Users {
 		else {
 			$user = new WP_User();
 
+			// Workaround for https://core.trac.wordpress.org/ticket/28019
+			$user->data = new stdClass;
+
 			if ( ! current_user_can( 'create_users' ) ) {
 				return new WP_Error( 'json_cannot_create', __( 'Sorry, you are not allowed to create users.' ), array( 'status' => 403 ) );
 			}
Workaround core bug with empty WP_User