made pointers to structs also give 400 instead of 500 on bad json.