JSON.AddFalseToObject
---------------------

Adds a new entry to the object with the given name and a boolean false value.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [JSON](component_JSON.md) | [2.7](newinversion27.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "JSON.AddFalseToObject"; JSON; Name... ) 

**MBS**( **"JSON.AddFalseToObject";** /\* Adds a new entry to the object with the given name and a boolean false value. \*/  
**$JSON**; /\* A JSON text or reference.e.g. {"key": "value"} \*/   
**$Name...**) /\* The name of the Object property.e.g. "length" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| JSON | A JSON text or reference. | {"key": "value"} |
| Name... | The name of the Object property. | "length" |

### Result

Returns JSON code.

### Description

Adds a new entry to the object with the given name and a boolean false value.  
  
With version 6, you can pass several parameters to add several entries to the object.  
When adding to a JSON reference, the function returns that reference number.  
  
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.  
Please repeat Name parameter as often as you need.  
### Examples

Adds two entries with false to empty array:

 MBS ( "JSON.AddFalseToObject"; "{}"; "hello"; "world")  
<small>  
Example result:   
{ "hello" : false, "world" : false } </small>Adds false to object:

 MBS ( "JSON.AddFalseToObject"; "{}"; "test" )  
<small>  
Example result:   
{ "test" : false } </small>### See also

- [JSON.AddBooleanToObject](JSONAddBooleanToObject.md)
- [JSON.AddItemToObject](JSONAddItemToObject.md)
- [JSON.AddNullToObject](JSONAddNullToObject.md)
- [JSON.AddNumberToObject](JSONAddNumberToObject.md)
- [JSON.AddStringToObject](JSONAddStringToObject.md)
- [JSON.AddTrueToObject](JSONAddTrueToObject.md)
- [JSON.AddValueToObject](JSONAddValueToObject.md)

### Blog Entries

- [With JSON in excellent form](https://www.mbsplugins.de/archive/2019-11-16/With_JSON_in_excellent_form/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 5th June 2021

  
[JSON.AddBooleanToObject](JSONAddBooleanToObject.md) - [JSON.AddItemToArray](JSONAddItemToArray.md)

[HTML Version](JSONAddFalseToObject.shtml)