fix the issue where create json with relationships was not hooking them up properly