It\'s a pain to write codes like this all the time in jbuilder.json template:
json.extract! notification, :id, :user_id, :notice_type, :message, :resource_ty
I'm using jbuilder 1.5.0 and merge! didn't work but I found an alternative syntax:
json.(notification, *notification.attributes.keys)