allow JSON as input data