ized. JSON messages over this depth will fail to be deserialized. Default value is 100. 

Returns  :

    

The same message passed as argument.

Raises::

    

ParseError: On JSON parsing problems.

` google.protobuf.json_format. ` ` ParseDict ` (  _js_dict_ , _message_ ,
_ignore_unknown_fields=False_ , _descriptor_pool=None_ ,
_max_recursion_depth=100_ )  ¶

    

Parses a JSON dictionary representation into a message.

Parameters  :

    

  * **js_dict** – Dict representation of a JSON message. 

  * **message** – A protocol buffer message to merge into. 

  * **ignore_unknown_fields** – If True, do not raise errors for unknown fields. 

  * **descriptor_pool** – A Descriptor Pool for resolving types. If None use the default. 

  * **max_recursion_depth** – max recursion depth of JSON message to be deserialized. JSON messages over this depth will fail to be deserialized. Default value is 100. 

Returns  :

    

The same message passed as argument.

_exception_ ` google.protobuf.json_format. ` ` ParseError ` ¶

    

Thrown in case of parsing error.

` args ` ¶

    

` with_traceback ` (  )  ¶

    

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

_exception_ ` google.protobuf.json_format. ` ` SerializeToJsonError ` ¶

    

Thrown if serialization to JSON fails.

` args ` ¶

    

` with_traceback ` (  )  ¶

    

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

###  [ Table of Contents ](../../index.html)

  * [ google.protobuf ](../protobuf.html)
  * [ google.protobuf.any_pb2 ](any_pb2.html)
  * [ google.protobuf.descriptor ](descriptor.html)
  * [ google.protobuf.descriptor_database ](descriptor_database.html)
  * [ google.protobuf.descriptor_pb2 ](descriptor_pb2.html)
  * [ google.protobuf.descriptor_pool ](descriptor_pool.html)
  * [ google.protobuf.duration_pb2 ](duration_pb2.html)
  * [ google.protobuf.empty_pb2 ](empty_pb2.html)
  * [ google.protobuf.field_mask_pb2 ](field_mask_pb2.html)
  * [ google.protobuf.internal.containers ](internal/containers.html)
  * google.protobuf.json_format 
  * [ google.protobuf.message ](message.html)
  * [ google.protobuf.message_factory ](message_factory.html)
  * [ google.protobuf.proto_builder ](proto_builder.html)
  * [ google.protobuf.reflection ](reflection.html)
  * [ google.protobuf.service ](service.html)
  * [ google.protobuf.service_reflection ](service_reflection.html)
  * [ google.protobuf.struct_pb2 ](struct_pb2.html)
  * [ google.protobuf.symbol_database ](symbol_database.html)
  * [ google.protobuf.text_encoding ](text_encoding.html)
  * [ google.protobuf.text_format ](text_format.html)
  * [ google.protobuf.timestamp_pb2 ](timestamp_pb2.html)
  * [ google.protobuf.type_pb2 ](type_pb2.html)
  * [ google.protobuf.unknown_fields ](unknown_fields.html)
  * [ google.protobuf.wrappers_pb2 ](wrappers_pb2.html)

###  Related Topics

  * [ Documentation overview ](../../index.html)
    * Previous: [ google.protobuf.internal.containers ](internal/containers.html "previous chapter")
    * Next: [ google.protobuf.message ](message.html "next chapter")

###  This Page

  * [ Show Source ](../../_sources/google/protobuf/json_format.rst.txt)

©2008, Google LLC. | Powered by [ Sphinx 2.3.1 ](http://sphinx-doc.org/) & [ Alabaster 0.7.12 ](https://github.com/bitprophet/alabaster) | [ Page source ](../../_sources/google/protobuf/json_format.rst.txt)