Ignore fields in json and db if they are an unneeded object