Handeling malformated json messages