Create A New 1D-Array: Boolean


using JSON Pointer..

ASTER::ACTION::JSON::Create New 1D-Arr with Data Auto Fill.
Creating an Array :: Filling Array Elements with Boolean Values
  • Creates a new array for data expanded in memory and fills the values with Boolean.
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.1

JSON Pointer: Specify the insertion position of the array-type data.

If the key name is duplicated, it will be overwritten.

Create an array under the root with the key name "test", example of JSON Pointer:

"/test"

Parameter.2

Array element count

The number of times to add elements to the end of the array and the number of times to insert data = specify the array element count.

As an example of parameters when inserting 3 data items into the array,

3

Parameter.3

The data type for batch assignment can be chosen from boolean values: true or false.

When the integer value is 0, it is processed as false; any other number is processed as true.

If the parameter is = 0
0
{
    "test":[
        false,
        false
        ]
}
If the parameter is = 1
1
{
    "test":[
        true,
        true
        ]
}