You need to sign in to do that
Don't have an account?

JSON.deserialize() not working
I am trying to use the JSON.deserialize() and it is not working.
public class MemberProfile { public Integer Id { get; set; } public String first_name { get; set; } public String last_name { get; set; } public String email { get; set; } }
.
in my class....
MemberProfile memberProfile = (MemberProfile) JSON.deserialize(httpResponse.getBody(), MemberProfile.class);
Error = Compile Error: Variable does not exist: MemberProfile.class
I am guessing that the version is less than v24:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_json.htm
The relevant part is here:
Hope this helps,