Skip to main content
1 of 2
sfdcfox
  • 501.7k
  • 21
  • 473
  • 828

You can create a class to parse the input, roughly outlined as follows:

public class Item {
    public String name, value;
}
@RemoteAction public static createContact(String jsonObjResult) {
    // Serialize Items
    Item[] values = (List<Item>)JSON.deserialize(jsonObjResult, List<Item>.class);
    // process items to create contacts
}
sfdcfox
  • 501.7k
  • 21
  • 473
  • 828