Force JSON objects for commands.

An empty array shouldn't be [], it should be {}.
Match on the keys, not the application key.