LLMClientJStr Method

Extract a string value from a flat JSON object. Handles "key":"value" and "key": "value" (with whitespace). Returns "" when the key is absent or the value is null/empty.

Definition

Namespace: DWSIM.SharedClasses
Assembly: DWSIM.SharedClasses (in DWSIM.SharedClasses.dll) Version: 10.0.0.0
private string JStr(
	string json,
	string key
)

Parameters

json  String
 
key  String
 

Return Value

String

See Also