Configures number precision when converting doubles to text */
| 347 | |
| 348 | /* Configures number precision when converting doubles to text */ |
| 349 | static int json_cfg_encode_number_precision(lua_State *l) |
| 350 | { |
| 351 | json_config_t *cfg = json_arg_init(l, 1); |
| 352 | |
| 353 | return json_integer_option(l, 1, &cfg->encode_number_precision, 1, 16); |
| 354 | } |
| 355 | |
| 356 | /* Configures how to treat empty table when encode lua table */ |
| 357 | static int json_cfg_encode_empty_table_as_object(lua_State *l) |
nothing calls this directly
no test coverage detected