remove validate api, json dumps do the same thing