fortplot
Documentation
Source Files
Modules
Procedures
Abstract Interfaces
Derived Types
Programs
escape_json_string
Function
28 statements
Source File
fortplot_spec_json.f90
fortplot_spec_json
escape_json_string
Contents
public pure function escape_json_string(s) result(escaped)
Escape a string for safe JSON embedding. Handles: " -> \", \ -> \, and control characters.
Arguments
Type
Intent
Optional
Attributes
Name
character(len=*),
intent(in)
::
s
Return Value
character(len=:), allocatable