Network abstraction for JSON/XML requests