<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v2.15.0/keras/preprocessing/text.py#L578-L613) |

Parses a JSON tokenizer configuration and returns a tokenizer instance.

    tf.keras.preprocessing.text.tokenizer_from_json(
        json_string
    )

> [!WARNING]
> **Deprecated:** [`tf.keras.preprocessing.text.Tokenizer`](https://www.tensorflow.org/versions/r2.15/api_docs/python/tf/keras/preprocessing/text/Tokenizer) does not operate on tensors and is not recommended for new code. Prefer [`tf.keras.layers.TextVectorization`](https://www.tensorflow.org/versions/r2.15/api_docs/python/tf/keras/layers/TextVectorization) which provides equivalent functionality through a layer which accepts [`tf.Tensor`](https://www.tensorflow.org/versions/r2.15/api_docs/python/tf/Tensor) input. See the [text loading tutorial](https://www.tensorflow.org/tutorials/load_data/text) for an overview of the layer and text handling in tensorflow.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `json_string` | JSON string encoding a tokenizer configuration. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A Keras Tokenizer instance ||

<br />