Iterate through lynx_value of array or map type.
| Key | Description |
|---|---|
| [in] env | The environment in which lynx value runs, typically nullptr. |
| [in] object | lynx_value to be iterated through. |
| [in] callback | lynx_value_iterator_callback function pointer. |
| [in] func | Pass through a function pointer to handle the Callback, which is not used inside the iterator function. |
| [in] raw_data | Pass through user-defined pointer data, which is not used inside the iterator function. |
Returns lynx_api_ok if the API succeeded.
If the lynx_value being iterated is an array, the Callback's key is of type lynx_value_uint32. If the lynx_value being iterated is a map, the Callback's key is of type lynx_value_string.