You have to change modified value and then run bench frappe --latest.
But why you are directly changing json, you can add the field from UI, it will automatically be reflected in json, if developer_mode is set to 1 in site_config.
If you want to add a custom field in existing doctype, you can create Custom Field record.
It should work, if you directly add a field in the doctype, it should be appeared in json file. Ensure that you have changing in right file, in right branch and in right site.
I tried adding a field to the Employee form by editing employee.json but the field doesn’t show up on the site. When I add the field from the UI, I don’t see it in the employee.json file. The reason it’s important for me is simply because this new field is supposed to be part of the Pull Request for a proposed new feature
When you do bench migrate the system will update the database based on your JSON file only if the “modified” (sorry not “modified by”) field has changed since the last update.
Sir they way you have suggest i am trying to do in same manner…all the fields are appearing in doctype while customisation … but when am trying to save that doc so that field will be create in database…getting error.