Fix a small bug while casting native JSON to custom one.
Release v1.2.