Why do you import json as well as jsonapi?  jsonapi selects the best available json implementation.