Adding a check for exposable json attributes.