fixed annotation to allow JSON input