Set the Targeted JSON Pointer
using JSON Pointer..
ASTER::ACTION::JSON::Save the targeted JSON Pointer
Save the JSON Pointer as a target path in ASTER. The saved target can be used with specialized JSON commands corresponding to the target path.
The JSON Pointer typically requires specifying the path each time, but when using the same path repeatedly in loop processing, using the target path can contribute to processing efficiency by omitting the need to input the URI. The Targeted JSON Pointer can be used with “target-compatible commands.”
Targeted JSON Pointer: List of Compatible Commands
- JSON :: ACTION :: Batch Assignment for Oi Alt String[n]
- JSON :: ACTION :: Batch Assignment for Oi Alt Val[n]
- JSON :: ACTION :: Batch Assignment for Oi Flag[n]
- JSON :: ACTION :: Targeted Array :: Set the Val As Bool
- JSON :: ACTION :: Targeted Array :: push_back String
- JSON :: CONDITION :: EvD :: if targeted is Array
- JSON :: CONDITION :: EvD :: if targeted is Type of Bool & Val True
- JSON :: CONDITION :: EvD :: if targeted is type of Bool & Val False
- JSON :: EXPRESSION :: Targeted JSON Pointer :: Get As Number Type
- JSON :: EXPRESSION :: Targeted JSON Pointer :: Get Num of Total Array Elements
Parameter.1
Input of
JSON Pointer
As an example of an actual JSON Object
{
"test":"Exsample"
}
Specify a string with the key name “test” that is located directly under the root.
"/test"
Parameter.2
When setting the target, a “search uID” is issued that can be used for target-specific conditions.
This parameter is useful if you want to perform different processes for each unique ID.
When registering a target, JSON Pointer validity checks and data type determinations are performed. If the data type determination finds the data structure type to be true, it means the data is either a JSON array or a JSON object. Immediate execution condition is executed, and different conditions are enabled for array type and object type respectively.
Based on the target type determination result, if immediate execution conditions can be used, the “search uID” will be used for identifying events with this specific condition.
1
If the data type of the specified path is determined to be “array,” you can use the immediate execution condition “is Array.” By using search uID, you can distinguish between different target registration events issued at different times (search uID == 2
) and the most recent event (search uID == 1
).
Note
Actions using Search uID: ( immediate execution condition ) should be used on independent event lines.
If you set the Targeted JSON Pointer on the same line as other actions, there may be conflicts in action execution, resulting in improper functioning.
In the sample image above, you cannot combine the action on line 3
with line 2
.
When you set the Targeted JSON Pointer, ASTER
checks the data type of the specified path.
If the variable type is an array, the immediate execution condition is triggered, and the transition goes to line 4
.
During the transition, the event on line 3
has not yet fully completed.
The action on line 4
is executed first, and once completed, the transition ends, returning to line 3
to finish the action on line 3
.
For processes involving immediate execution conditions, it is generally safer to use independent lines for each event when creating events in CF25. The standard “fast loop” in CF25 operates in a similar manner and is essentially equivalent.