Bare literals like "foo" or null are valid JSON documents, technically. However, all reasonable op mode outputs are either objects or lists. A bare literal is almost certainly caused by a bug or an oversight and is unlikely to be useful for a client.
Op mode functions that return bare literals should cause an internal error to help developers identify such oversights and help users report such issues to developers.