Malformed json handlind, refs really non-required