From_dataset on JSON dataset results in json text must at least contain two octets!

In my current schema, I try to access a dataset (ClientOffice) which is stored as json.
My ClientOffice dataset is as follows,
[
{
id: …,
name: …,
companyId: …,
},
{}…
]

When I use from_dataset(“ClientOffice”, “id”, companyId: field(“CompanyId”)), I get ,

“Error evaluating from_dataset(“ClientOffice”, “id”, “{“companyId”:“641e2583f0323981f50001a9”}”): A JSON text must at least contain two octets!”

What am I missing here?

@mockaroo Any help on this would be appreciated