+ Start a Discussion

Can JSON.Deserialize() be used for unknown variable set?

I have an app making a callout to a service that returns the web form details (think web to lead), but the fields change from request to request, and sometimes include custom fields.

Is there a way to use JSON.deserialize() to handle this case or should I stick with a manual parser given the changing result set?