Declared in NSDictionary+BFKit.h

Overview

This category adds some useful methods to NSDictionary

Tasks

Class Methods

dictionaryToJSON:

+ (NSString *_Nonnull)dictionaryToJSON:(NSDictionary *_Nonnull)dictionary
Discussion

Convert the given dictionary to JSON as NSString

Parameters

dictionary

The dictionary to be converted

Return Value

Returns the JSON as NSString or nil if error while parsing

Declared In

NSDictionary+BFKit.h

dictionaryToJson:

+ (NSString *_Nonnull)dictionaryToJson:(NSDictionary *_Nonnull)dictionary
Discussion

Convert the given dictionary to JSON as NSString

Parameters

dictionary

The dictionary to be converted

Return Value

Returns the JSON as NSString or nil if error while parsing

Declared In

NSDictionary+BFKit.h

Instance Methods

dictionaryToJSON

- (NSString *_Nonnull)dictionaryToJSON
Discussion

Convert self to JSON as NSString

Return Value

Returns the JSON as NSString or nil if error while parsing

Declared In

NSDictionary+BFKit.h

dictionaryToJson

- (NSString *_Nonnull)dictionaryToJson
Discussion

Convert self to JSON as NSString

Return Value

Returns the JSON as NSString or nil if error while parsing

Declared In

NSDictionary+BFKit.h

safeObjectForKey:

- (id _Nullable)safeObjectForKey:(NSString *_Nonnull)key
Discussion

Returns an object if key exists or nil if not

Parameters

key

Key to get value of

Return Value

Value for the key Or nil

Declared In

NSDictionary+BFKit.h