Connecting via REST and JSON