nlohmann's size(): array/object element count, 1 for scalars, 0 for null.
| 151 | |
| 152 | // nlohmann's size(): array/object element count, 1 for scalars, 0 for null. |
| 153 | void ckpt_json_array_size(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs) |
| 154 | { |
| 155 | ReturnValue->Val->Integer = (int)tree(ScriptArgs(Parser, Param, NumArgs, "json_array_size"), 0)->size(); |
| 156 | } |
| 157 | |
| 158 | void ckpt_json_array_element(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs) |
| 159 | { |
nothing calls this directly
no test coverage detected