ceph osd stat --format json

and then you can avoid a delicate regex