Alphish / gm-community-toolbox

A collection of utility functions for GameMaker.
MIT License
34 stars 6 forks source link

Add filters and raw parsing parameters to `json_load` and `json_save` #67

Open Alphish opened 2 months ago

Alphish commented 2 months ago

During one of the recent updates:

The filter function allows a more fine-grained control over how specific values and structures are read/parsed, while inhibit string convert parameter disabled automatically parsing asset reference strings. Those would be useful not only for json_stringify/parse, but also json_save/load as well.

For the sake of brevity, the new arguments should be called filter (the counterpart to filter_func) and raw (the counterpart to inhibit_string_convert).