Fixed subscription handler acknowledgement duplication

Also fixed json serialiser