JSON and HTTPRequest fixes