Salesforce の JSONサポート
イシュー
- SalesforceでJSONを取り扱う
参考
- JSON Class
- JSON Support
- JSON Methods
- Getting Started with Apex JSON - developer.force.com
- JSON Class
- JSON Parsing
- JSONParser Class
JSONParser parser = JSON.createParser(response.getBody()); Double grandTotal = 0.0; while (parser.nextToken() != null) { if ((parser.getCurrentToken() == JSONToken.FIELD_NAME) && (parser.getText() == 'totalPrice')) { // Get the value. parser.nextToken(); // Compute the grand total price for all invoices. grandTotal += parser.getDoubleValue(); } }: