[issue 2061] fix to_json to include attr_accesor items