Skip to content

Commit

Permalink
better json serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 27, 2015
1 parent c12ae7e commit 718c26b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions misc/src/json_c/serializer.py
Expand Up @@ -212,7 +212,8 @@ def dumps_buffer(object):
def dump_parts(object, objects = None, cycles = False):
"""
Dumps (converts to json) the given object parts using the "normal"
approach.
approach, note that the construction of the final string must be
performed using a generator based strategy.
@type object: Object
@param object: The object to have the parts dumped.
Expand All @@ -222,8 +223,9 @@ def dump_parts(object, objects = None, cycles = False):
@type cycles: bool
@param cycles: Flag that controls if cycles should be detected
and avoided (gracefully handled).
@rtype: String
@return: The dumped json string.
@rtype: Generator
@return: The generator from which a proper json string
may be constructed using a lazy approach.
"""

# in case the current object contains the json value
Expand Down

0 comments on commit 718c26b

Please sign in to comment.