I tried to create a string object on Not Wikilambda, a test wiki with Extension:WikiLambda installed.
https://notwikilambda.toolforge.org/w/api.php ?action=edit &format=json &title=ZObject:Z263954 &text={"Z1K1": "Z6", "Z6K1": "a string!"} &contentformat=application/json &contentmodel=zobject &token=…
The extension apparently decided to store this as a plain string (at Z28 I also tried to add labels separately but they were thrown away and the edit became a null edit):
$ curl 'https://notwikilambda.toolforge.org/w/index.php?title=ZObject:Z263954&action=raw&ctype=application/json' "a string!"
This seems to confuse other parts of the extension:
2020-09-27 19:30:56: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: get_object_vars() expects parameter 1 to be object, string given in /data/project/notwikilambda/public_html/w/extensions/WikiLambda/includes/ZPersistentObject.php on line 205 2020-09-27 19:30:56: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /data/project/notwikilambda/public_html/w/extensions/WikiLambda/includes/ZPersistentObject.php on line 206