POST and PUT with JSON objects.