WTH is there no json_attributes for command_line and RESTful binary sensors?

For a comand_line sensor one can define a list of json_attributes.

But this is not possible for a binary_sensor, it is simply not implemented for binary command_line sensors.

That’s typically the case for most things. Binary sensor never usually has attributes. Pretty sure people just add it to sensors without touching the other files

Indeed. It’s the same situation with RESTful sensor and RESTful binary sensor.

The RESTful sensor supports json_attributes, whereas the binary sensor doesn’t support them.

Actually i could replace my commandline sensor (which calls a combination of curl and jq and outputs 0 or 1, together with some attributes) with a RESTful binary sensor, if it also would support json_attributes and json_attributes_path configuration options.
That would be much cleaner.