add automatically generate input_json function.