jsonReadString

Reads a string value from a JSON object by key with escape sequence handling. Takes json string and key string. Returns unescaped string via ReturnString, or "" if key not found or quote missing.

JSON

Parameters & Returns

Parameters

json String
key String

Returns

String

Quick Summary

Reads a string value from a JSON object by key with escape sequence handling. Takes json string and key string. Returns unescaped string via ReturnString, or "" if key not found or quote missing.

Technical Exegesis...

Reads a string value from a JSON object by key with escape sequence handling. Takes json string and key string. Calls FindKeyPosition helper to search for "\"key\":" pattern. If key not found, returns empty string "". Gets position after colon. Expects opening quote. Skips opening quote, parses until closing quote while handling escape sequences: \\\" -> \", \\\\ -> \\, \\b -> backspace, \\f -> form feed, \\n -> newline, \\r -> carriage return, \\t -> tab. Uses escaped flag to track backslash state.

Example

Example.bam
; No example implemented yet