Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

JSON.DeleteItemFromObject

Deletes item from an object.

Component Version macOS Windows Linux Server iOS SDK
JSON 2.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "JSON.DeleteItemFromObject"; json; name )   More

Parameters

Parameter Description Example
json A JSON text or reference. {"key": "value"}
name The name of the item. "key"

Result

Returns JSON code.

Description

Deletes item from an object.
Returns the JSON reference number if called with reference number. Otherwise returns new JSON text.

Examples

Add and delete item:

Set Variable [$json; Value:MBS( "JSON.Parse"; "{\"Hello\": \"World\"}" )]
Set Variable [$r; Value:MBS( "JSON.AddBooleanToObject"; $json; "test"; 1)]
Show Custom Dialog [$json; MBS("JSON.Format"; $json)]
Set Variable [$r; Value:MBS( "JSON.DeleteItemFromObject"; $json; "test")]
Show Custom Dialog [$json; MBS("JSON.Format"; $json)]
Set Variable [$r; Value:MBS( "JSON.Release"; $json)]

See also

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 15th November 2019


JSON.DeleteItemFromArray - JSON.DeleteRecord