Create a New JSON 2D Array: Export XY Coordinates of mvt.Target.


using JSON Pointer..

ASTER::ACTION::JSON::MvtUtil: Create a new JSON 2D array & export the XY coordinates of the mvt.Target object instances

Export the XY coordinates of all object instances selected in mvt.Target to a newly created JSON array in the specified path.

Create a new JSON array (two-dimensional array) for existing JSON data loaded into memory.

In the absence of preloaded JSON data, read more…

If there is no pre-loaded data, create a new JSON Object at the root and add an array.

In that case, specify the JSON Pointer directly under the root. The following description is possible:

"/NewArray"

The following description will result in an error:

"/test/NewArray"

/NewArray is known to be an array, but /test is a data structure, so it cannot be inferred whether it is an array or an object.


Parameter

Specify the path for creating a new JSON array using a JSON Pointer.

"/TgtXyCoords"

Example result when there are 4 instances selected as mvt.Target:

{
    "TgtXyCoords":
    [
        [100, 100],
        [100, 200],
        [200, 100],
        [200, 200]
    ]
}
◆◆ <!-- Imagine this kind of arrangement -->
◆◆

Caution:

If other data exists at the specified path, the existing data will be replaced by the array through overwriting.