Replies: 1 comment
-
We receive from several apps either the value in kJ or kcal, but not both. Unlike other nutrients, it's easy to extract. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Offer a suggestion for the kJ value. It's usually "D…DD kJ"
example:
/salt\n869 kJ /208 kcal\
https://static.openfoodfacts.org/images/products/842/602/710/6327/2.json
https://static.openfoodfacts.org/images/products/842/602/710/6327/2.jpg
869/4,184=0,2076
\n195.kJ/46 kcal\n
https://static.openfoodfacts.org/images/products/325/039/285/8865/2.json
https://static.openfoodfacts.org/images/products/325/039/285/8865/2.jpg
195/4,184=0,0466
kJ/4.184≈kcal
Beta Was this translation helpful? Give feedback.
All reactions