Looking at the documentation for the methods that add targeting criteria to a line item, I’ve noticed that in some cases the
targeting_value field is an integer value and in other cases, it is a string value. For example, on the PUT targeting criteria method the sample response at the bottom of the page shows that the criterion named “Male” has
"targeting_value": 1 while the criterion named “snowboarding” has
A situation where a field of a Json object may have different data types depending on context creates a real inconvenience for developers using certain Json parsing libraries (e.g. Spray). Can Twitter please eliminate this inconsistency?