Move the json entities specific functions to json_entities

This commit is contained in:
2023-07-01 15:04:59 +01:00
parent 99f5c5bfe5
commit ff110ea6e2
3 changed files with 51 additions and 10 deletions

View File

@@ -65,5 +65,9 @@ struct json_collection {
};
void print_json(const jentity_t *entity, u32 indent);
jcoll_t *get_collection_from_entity(const jentity_t *entity);
jentity_t *create_new_single_entity(const jval_t value, jentity_t *parent);
jentity_t *create_new_pair_entity(dstr_t *key, const jval_t value,
jentity_t *parent);
#endif // !JSON_ENTITIES_H