Register User with Services (JSON) with Custom Fields I am trying to register a new user on Drupal7 via services with JSON. Actually I am posting info from JAVA (android) with JSON format to the server with services module enabled. A sample successful JSON post is: 

    {
    "name": "erfan",
    "pass": "1234",
    "mail": "erfan@example.com",
    "status": "1"
     }



  URL: [siteURL]/[endpoint]/user/register


I was successful creating users with basic info such as name,email,status. 

I have added custom fields like field_address, field_phone, etc to the web site and want to send them via JSON to the server. 

The problem is I can not figure out how to post these data to the server and couldn't find any documentation about it. My trial and error approach was not successful too, because I am not good in PHP coding. So please help me. Thanks.
Hope this will help you,

In Drupal 7 you can use the below JSON format to add custom fields(field_user_image)

{
    "name": "test",
    "pass": "password",
    "mail": "test@gmail.com",
    "field_user_image": {
        "und": [{
            "fid": "2"
        }]
    }
}


I have tried in my local and it is working fine.


Created new field UUID


Calling the Service using Firefox poster add-on


Code



  { 
    "name": "testuser123", 
    "pass": "testuser123", 
    "mail": "testuser123@gmail.com", 
    "field_register_uuid": 
      { "und": 
        [{ 
          "value": "65C7DCA4-8F03-473C-9E8F-08B3F29E91AE" 
        }] 
      }
  }


I can able to create new user with the custom field

References


How do I POST a new node using the Services module? 
Services module. How to construct the JSON data with session info for creating node?