postJson


Description:

public static HttpResponse? postJson (string url, string jsonBody)

Sends an HTTP POST request with a JSON body.

Sets Content-Type to application/json automatically.

Parameters:

url

target URL.

jsonBody

JSON body string.

Returns:

HTTP response or null on error.