Handle json message within on_body_cb function