tf.raw_ops.DecodeJSONExample

Convert JSON-encoded Example records to binary protocol buffer strings.

This op converts JSON-serialized tf.train.Example (created with json_format.MessageToJson, following the standard JSON mapping) to a binary-serialized tf.train.Example (equivalent to Example.SerializeToString()) suitable for conversion to tensors with tf.io.parse_example.

json_examples A Tensor of type string. Each string is a JSON object serialized according to the JSON mapping of the Example proto.
name A name for the operation (optional).

A Tensor of type string.