Use jsonutils instead of json in test/api.py

Also remove the then unused json import

Change-Id: I5570981e04487301c1bf723c04b266fc445aed1e
Merge "Use jsonutils instead of json in test/api.py"