Allow JSON attributes to be customized
Merge pull request #1182 from ysitu/json_id

Allow JSON attributes to be customized
Fixes #1058