---
sourceDocument: Australia Platform security
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/platform-security

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# JsonNode

# JsonNode {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 Minuten Lesedauer

A global object that provides methods to iterate over the JSON content.

You can access a JsonNode object by calling [getAsJsonContent()](https://servicenow-prod.fluidtopics.net/CR6Fv3~bLOAJfQjIcmGTgg#r_RQST-getAsJsonContent "Returns the request as an iterable object of type JsonNode.") on a request object.

You access JSON content from a [POST or URL
parameter](https://servicenow-prod.fluidtopics.net/10kohEAkxSXxRGanrKZung#param-apis "POST and URL parameters can be accessed as properties of the request object using request.postParams and request.urlParams.") by calling `request.postParms.<parameter
name>.getAsJsonContent()` or `request.urlParms.<parameter
name>.getAsJsonContent()`.

## JsonNode - getIterator(String xPath) {#ariaid-title2}

Returns a JsonNodeIterator object for the JSON content.
This method can only be used on the root node, but can be used to traverse deep into the
JSON object. Subsequent traversals must use the iterator() method.
{#r_JSND-getIterator_S__table_gps_h25_st__entry__3}

| Name | Type | Description |
|-|-|-|
| xPath | String | An xPath expression. |
[Tabelle : 1. Parameters]

{#r_JSND-getIterator_S__table_gps_h25_st} {#r_JSND-getIterator_S__table_hps_h25_st__entry__2}

| Type | Description |
|-|-|
| JsonNodeIterator | An object that can iterate over nodes in the JSON object. |
[Tabelle : 2. Returns]

{#r_JSND-getIterator_S__table_hps_h25_st}

## JsonNode - iterator() {#ariaid-title3}

Returns a JsonNodeIterator object that iterates over all child nodes
of the current node.
{#r_JSND-iterator__table_tvk_t35_st__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Tabelle : 3. Parameters]

{#r_JSND-iterator__table_tvk_t35_st} {#r_JSND-iterator__table_uvk_t35_st__entry__2}

| Type | Description |
|-|-|
| JsonNodeIterator | An object that can iterate over nodes in the JSON object. |
[Tabelle : 4. Returns]

{#r_JSND-iterator__table_uvk_t35_st}

## JsonNode - getAsString() {#ariaid-title4}

Returns the current node value as a string.
{#r_JSND-getAsString__table_o5c_gk5_st__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Tabelle : 5. Parameters]

{#r_JSND-getAsString__table_o5c_gk5_st} {#r_JSND-getAsString__table_p5c_gk5_st__entry__2}

| Type | Description |
|-|-|
| String | The current node value. |
[Tabelle : 6. Returns]

{#r_JSND-getAsString__table_p5c_gk5_st}

## JsonNode - getAsString(String propertyName) {#ariaid-title5}

Returns the string value of the specified property.
{#r_JSND-getAsString_S__table_o5c_gk5_st__entry__3}

| Name | Type | Description |
|-|-|-|
| propertyName | String | Name of the property. |
[Tabelle : 7. Parameters]

{#r_JSND-getAsString_S__table_o5c_gk5_st} {#r_JSND-getAsString_S__table_p5c_gk5_st__entry__2}

| Type | Description |
|-|-|
| String | The property value. |
[Tabelle : 8. Returns]

{#r_JSND-getAsString_S__table_p5c_gk5_st}

## JsonNode - getName() {#ariaid-title6}

Returns the name of the current JSON node.
{#r_JSND-getName__table_bgy_ml5_st__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Tabelle : 9. Parameters]

{#r_JSND-getName__table_bgy_ml5_st} {#r_JSND-getName__table_cgy_ml5_st__entry__2}

| Type | Description |
|-|-|
| String | Name of the current JSON node. |
[Tabelle : 10. Returns]

{#r_JSND-getName__table_cgy_ml5_st}

## JsonNode - valueFor(String tableName, String fieldName) {#ariaid-title7}

Specifies that the JSON property maps to the specified field in the specified table.
Calling this method on a JSON property tells the proxy that the value for this property
maps to the specified field in the specified table. The proxy then decides if the field must
be encrypted. If the table and field names are unknown, you can call the
valueFor() method on a table and a field that are [dynamically
assigned](https://servicenow-prod.fluidtopics.net/XStZ1eaONPuRhW1Lx0LVtQ#json-overview__json-dynamic) based on the request.
{#r_JSND-valueFor_S_S__table_lyr_vl5_st__entry__3}

| Name | Type | Description |
|-|-|-|
| tableName | String | The table name. |
| fieldName | String | The field name. |
[Tabelle : 11. Parameters]

{#r_JSND-valueFor_S_S__table_lyr_vl5_st} {#r_JSND-valueFor_S_S__table_myr_vl5_st__entry__2}

| Type | Description |
|-|-|
| void |   |
[Tabelle : 12. Returns]

{#r_JSND-valueFor_S_S__table_myr_vl5_st}

## JsonNode - encodedQueryFor(String tableName) {#ariaid-title8}

Specifies that the value of the JSON property is an encoded query for the specified
table.
Calling this function on a JSON node tells the proxy that the value is an [Encoded query strings](https://www.servicenow.com/docs/access?context=c_EncodedQueryStrings&version=australia&pubname=australia-platform-user-interface&ft:locale=en-US) for the specified table. The proxy parses the encoded query and
encrypts the values for fields in the encoded query that must be encrypted.
{#r_JSND-encodedQueryFor_S__table_apn_bn5_st__entry__3}

| Name | Type | Description |
|-|-|-|
| tableName | String | The table that you expect the query to run on. |
[Tabelle : 13. Parameters]

{#r_JSND-encodedQueryFor_S__table_apn_bn5_st} {#r_JSND-encodedQueryFor_S__table_bpn_bn5_st__entry__2}

| Type | Description |
|-|-|
| void |   |
[Tabelle : 14. Returns]

{#r_JSND-encodedQueryFor_S__table_bpn_bn5_st}

