json.serialize apex example
Example: get value from serialized json apex
MyObjects MyA = (MyObjects) JSON.deserialize(req.requestBody.toString(),MyObjects.class);
String code = MyA.Code;
MyObjects MyA = (MyObjects) JSON.deserialize(req.requestBody.toString(),MyObjects.class);
String code = MyA.Code;