Fixed parsing of JSON strings when providing an object instance rather
than a type.
Merge pull request #13 from nmccann/master

Fixed parsing of JSON strings when providing an object instance