util.JSONArray.remove()

util.JSONArray.remove() removes the specified element from the JSON array.

Syntax

CALL util.JSONArray.remove(index INTEGER)

Parameters

index INTEGER

an index part of the element of the JSON array

Usage and examples

util.JSONArray.remove() takes the index of the element of the JSON array (= the key:value pair) as the parameter and deletes this element.

MAIN
    DEFINE arr util.JSONArray
    LET arr= util.JSONArray.parse('["aa","bb","cc"]')
    CALL arr.remove(2)
    DISPLAY arr.get(2)

    DISPLAY arr.get(2)
END MAIN

 

 

Contact Us

Privacy Policy

Copyright © 2025 Querix, (UK) Ltd.