Do proper JSON for node endpoint.