More resilant JSON body parser