Testing automatic conversion of JSON