Generates JSONs from input.