weight features of products with json as input