Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

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

FileMaker Magazin

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


JSON.DeleteItemFromArray - JSON.EqualContent

Feedback: Report problem or ask question.