get_string_with_default


Description:

[ Version ( since = "2.1.1" ) ]
public unowned string get_string_with_default (string key, string value_default) throws Error

Gets a string from a JSON object.

An error is returned if key is not the correct type.

Parameters:

this

a JsonObject

key

dictionary key

value_default

value to return if key is not found

Returns:

a string, or null on error