[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.raw_ops.DecodeJSONExample\n\n\u003cbr /\u003e\n\nConvert JSON-encoded Example records to binary protocol buffer strings.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.raw_ops.DecodeJSONExample`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/DecodeJSONExample)\n\n\u003cbr /\u003e\n\n tf.raw_ops.DecodeJSONExample(\n json_examples, name=None\n )\n\n| **Note:** This is **not** a general purpose JSON parsing op.\n\nThis op converts JSON-serialized\n[`tf.train.Example`](../../tf/train/Example) (created with `json_format.MessageToJson`, following the\n[standard JSON mapping](https://developers.google.com/protocol-buffers/docs/proto3#json))\nto a binary-serialized [`tf.train.Example`](../../tf/train/Example) (equivalent to\n[`Example.SerializeToString()`](../../tf/train/BytesList#SerializeToString)) suitable for conversion to tensors with\n[`tf.io.parse_example`](../../tf/io/parse_example).\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------------|\n| `json_examples` | A `Tensor` of type `string`. Each string is a JSON object serialized according to the JSON mapping of the Example proto. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Tensor` of type `string`. ||\n\n\u003cbr /\u003e"]]