Removed trailing whitespace.
Added support for JSON input.
Bumped version to 2.0.