Fixup output json data

I think for the sake of readability, you can use to proc trick here

that is `@entity.map(&:to_json).join(',')`