added json_attributes option