allow specification of JSON key path when converting model to JSON