test to return decoded json object