dm_json_escape Function

public pure function dm_json_escape(str) result(esc)

Escapes passed character string by replacing each occurance of \ with \\.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: str

String to escape.

Return Value character(len=:), allocatable

Escaped string.