Configures the maximum number of nested arrays/objects allowed when * encoding */
| 299 | /* Configures the maximum number of nested arrays/objects allowed when |
| 300 | * encoding */ |
| 301 | static int json_cfg_decode_max_depth(lua_State *l) |
| 302 | { |
| 303 | json_config_t *cfg = json_arg_init(l, 1); |
| 304 | |
| 305 | return json_integer_option(l, 1, &cfg->decode_max_depth, 1, INT_MAX); |
| 306 | } |
| 307 | |
| 308 | /* Configures number precision when converting doubles to text */ |
| 309 | static int json_cfg_encode_number_precision(lua_State *l) |
nothing calls this directly
no test coverage detected