http: Add missing json import.

This is used in the exception handler for APIError.
Merge pull request #274 from zenhack/missing-json-import

http: Add missing json import.