How can I display a taxonomy term's parent ID in Views? I am using a JSON plugin to Views to output taxonomy terms as a JSON object for Javascript manipulation. I was to be able to include the parent ID in this output.

In view I see "Taxonomy term: Parent term" under relationships and I have added that to the view. But under "Fields" -> "Add" there is still no "Parent term" listed in the available fields. I'm pretty sure the "pid" should be available. Is there some other way of accessing that field via the Views UI?
Thanks Clive! Yes - I just found the solution. I took the following steps:


Under "Relationships" add "Parent term" and untick "Require relationship"
Under "Fields" add "Taxonomy term: Term ID" and under that select from the "Relationship" pulldown "Parent"


Since the relationship is not required, it will correctly show both top-level terms and all children term. Top-level terms has parent ID of 0.