Skip to content

JSONPath Tools / @jsonpath-tools/jsonpath / serializeLiteral

Function: serializeLiteral() ​

ts
function serializeLiteral(value, stringQuotes?): string;

Converts a literal to a text representation.

Parameters ​

value ​

string | number | boolean | null

Literal value.

stringQuotes? ​

StringQuotes = StringQuotes.double

Type of string quotes that should be used.

Returns ​

string