Added message structure Json support
Added message structure and json support