m-lua-scripting: don't show warning if object key is not a string
The wp_spa_json_parse_string() API also works for strings without quotes.
This commit is contained in:
@@ -152,7 +152,6 @@ push_luajson (lua_State *L, WpSpaJson *json)
|
||||
WpSpaJson *key = g_value_get_boxed (&item);
|
||||
g_autofree gchar *key_str = NULL;
|
||||
WpSpaJson *value = NULL;
|
||||
g_warn_if_fail (wp_spa_json_is_string (key));
|
||||
key_str = wp_spa_json_parse_string (key);
|
||||
g_warn_if_fail (key_str);
|
||||
g_value_unset (&item);
|
||||
|
Reference in New Issue
Block a user