test: Use jq more for shell json parsing

Using jq in these functions is a simple replacement for the inline
Python that's susceptible to breaking due to version differences.

Change-Id: I78f4c24b9b1a4bb4f6d406bcbcdbff8c82504c2b
1 file changed