serialize object plugin to serialize form input data into json format