# Nutrition Information

Below you will find the code you can use to generate a Nutrition Information rich data JSON.

# Your code

SchemaNutritionInformation::make()
	->calories(170)
	->carbohydrate(3)
	->cholesterol(2)
	->fat(4)
	->fiber(3)
	->protein(6)
	->saturatedFat(4)
	->servingSize(2)
	->sodium(3)
	->sugar(76)
	->transFat(43)
	->unsaturatedFat(2)
	->addMass(3);
1
2
3
4
5
6
7
8
9
10
11
12
13
14

# The result

{
	"@type": "NutritionInformation",
	"calories": "170 calories",
	"carbohydrateContent": "3 grams",
	"cholesterolContent": "2 milligrams",
	"fatContent": "4 grams",
	"fiberContent": "3 grams",
	"proteinContent": "6 grams",
	"saturatedFatContent": "4 grams",
	"servingSize": 2,
	"sodiumContent": "3 milligrams",
	"sugarContent": "76 grams",
	"transFatContent": "43 grams",
	"unsaturatedFatContent": "2 grams"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15