mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 02:09:59 +00:00
Add object_hook option to unpack and default option to pack.
(see simplejson for how to use).
This commit is contained in:
parent
2af7df5865
commit
70982e204c
4 changed files with 92 additions and 10 deletions
|
|
@ -317,6 +317,7 @@ _push:
|
|||
case CT_MAP_VALUE:
|
||||
if(msgpack_unpack_callback(_map_item)(user, &c->obj, c->map_key, obj) < 0) { goto _failed; }
|
||||
if(--c->count == 0) {
|
||||
msgpack_unpack_callback(_map_end)(user, &c->obj);
|
||||
obj = c->obj;
|
||||
--top;
|
||||
/*printf("stack pop %d\n", top);*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue