Use pop instead of get for code argument in json responses functions.