Add code to generate object json validation.