![]() |
JSON Parser
1.0
|
| boolean default_search_function_array_double_value | ( | const void * | element, |
| const void * | key | ||
| ) |
This search function searches the elements of a specified JSON Array List looking for a match of element number (non-integer) value to the key value number.
It can be used on both JSON Object lists and Array lists. It will only attempt to find a match with elements that have the value_type of JSON_double. It will ignore any elements with a different value type.
This is one of 3 available default search functions for floating point numbers. This is the default one used by default_search_function_array_values() and is the best choice for general purpose searches for non high precision work.
Unlike the general purpose search function default_search_function_array_values() these value type specific search functions use a simple non-structure key to perform the search, so using default_search_function_array_double_value() as your search function you could use list_simple_search(root_list, 42.45);