I'd come across the same issues you are experiencing and had been looking for a solution to the $input.path() issue.
Turns out to retrieve JSON you can use $input.json().
Full details are on the AWS documentation page. Not sure if this has been newly added as I only found it today.
http://docs.aws.amazon.com/apigateway/latest/developerguide/...