How to deserialize JSON when the result returns different data type