Skip to content

MTY_JSONReadFile

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Parse the contents of a file into an MTY_JSON item.

MTY_JSON *MTY_JSONReadFile(
    const char * path
);

Parameters

path (const char *)

Path to the serialized JSON file.

Return value

MTY_JSON *

On failure, NULL is returned. Call MTY_GetLog for details.

The returned MTY_JSON item should be destroyed with MTY_JSONDestroy if it remains the root item in the hierarchy.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: JSON

Clone this wiki locally