Need a better place to do JSON validation.