# Mask Data in JSON Format

* The ProtectoVault object is instantiated with your tokenization key.
* The input should be any of the following JSON format .

**Mask with Token**

eg&#x20;

```
Payload:{ "mask": [ { "value": "George Williams", "token_name": "Numeric Token" } ] }
```

&#x20;**Mask with Format and Token**

eg

```
Payload:{ "mask": [ { "value": "George Williams", "token_name": "Numeric Token", "format": "Person Name" } ] }
```

**Mask with AutoDetect**

eg

<pre><code><strong>Payload:{ "mask": [ { "value": "George Williams lives in Washington" } ] }
</strong></code></pre>

Learn more by checking out the section on [Supporting Token and Format Types.](/tokenization-packages/protecto-tokenization/supporting-token-and-format-types.md)

***Note:*** \
To obtain the `<auth token>`,please refer to the [Step-by-Step Guide to Obtain Your Auth Token](/tokenization-packages/protecto-tokenization/step-by-step-guide-to-obtain-your-auth-token.md)

*Code Snippet*

```python
# Import the ProtectoVault class from the protecto_ai module
from protecto_ai import ProtectoVault
# Create an instance of ProtectoVault with your authentication token
obj = ProtectoVault("<auth_token>")
# pass list of sensitive information as an input for the mask method
result = obj.mask({"mask": [{"value": "Ross", "token_name": "Text Token", "format": "Person Name"}]})
# Print the masked result
print(result)
```

*Result*

```
{ 
  "data": [ 
    { 
      "value": "Ross", 
      "token_value": "EZN792djTe", 
      "token_name": "Text Token", 
      "format": "Person Name" 
    } 
  ], 
  "success": true, 
  "error": { 
    "message": "" 
  } 
} 
```

For more comprehensive information about our product, kindly reach out to us through our website at <https://www.protecto.ai/>.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.protecto.ai/tokenization-packages/protecto-tokenization/mask-data-in-json-format.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
