Replaces layer values in groups with JSON data