function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
devloper sfdcdevloper sfdc 

Json String Parse



{
    "result": [
        {
            "parent": "",
            "made_sla": "true",
            "caused_by": "",
            "watch_list": "",
            "upon_reject": "cancel",
            "sys_updated_on": "2019-05-09 15:36:38",
            "child_incidents": "0",
            "hold_reason": "",
            "approval_history": "",
            "number": "INC0000060",
            "resolved_by": {
                "link": "https://dev59401.service-now.com/api/now/table/sys_user/5137153cc611227c000bbd1bd8cd2007",
                "value": "5137153cc611227c000bbd1bd8cd2007"
            },
            "sys_updated_by": "admin",
            "opened_by": {
                "link": "https://dev59401.service-now.com/api/now/table/sys_user/681ccaf9c0a8016400b98a06818d57c7",
                "value": "681ccaf9c0a8016400b98a06818d57c7"
            },
            "user_input": "",
            "sys_created_on": "2016-12-12 15:19:57",
            "sys_domain": {
                "link": "https://dev59401.service-now.com/api/now/table/sys_user_group/global",
                "value": "global"
            },
            "state": "7",
            "sys_created_by": "employee",
            "knowledge": "false",
            "order": "",
            "calendar_stc": "102197",
            "closed_at": "2016-12-14 02:46:44",
            "cmdb_ci": {
                "link": "https://dev59401.service-now.com/api/now/table/cmdb_ci/109562a3c611227500a7b7ff98cc0dc7",
                "value": "109562a3c611227500a7b7ff98cc0dc7"
            },
            "delivery_plan": "",
            "impact": "2",
            "active": "false",
            "work_notes_list": "",
            "business_service": {
                "link": "https://dev59401.service-now.com/api/now/table/cmdb_ci_service/27d32778c0a8000b00db970eeaa60f16",
                "value": "27d32778c0a8000b00db970eeaa60f16"
            },
            "priority": "3",
            "sys_domain_path": "/",
            "rfc": "",
            "time_worked": "",
            "expected_start": "",
            "opened_at": "2016-12-12 15:19:57",
            "business_duration": "1970-01-01 08:00:00",
            "group_list": "",
            "work_end": "",
            "caller_id": {
                "link": "https://dev59401.service-now.com/api/now/table/sys_user/681ccaf9c0a8016400b98a06818d57c7",
                "value": "681ccaf9c0a8016400b98a06818d57c7"
            },
            "reopened_time": "",
            "resolved_at": "2016-12-13 21:43:14",
            "approval_set": "",
            "subcategory": "email",
            "work_notes": "",
            "short_description": "hello this is testing",
            "close_code": "Solved (Permanently)",
            "correlation_display": "",
            "delivery_task": "",
            "work_start": "",
            "assignment_group": {
                "link": "https://dev59401.service-now.com/api/now/table/sys_user_group/287ebd7da9fe198100f92cc8d1d2154e",
                "value": "287ebd7da9fe198100f92cc8d1d2154e"
            },
            "additional_assignee_list": "",
            "business_stc": "28800",
            "description": "this is test for steve",
            "calendar_duration": "1970-01-02 04:23:17",
            "close_notes": "This incident is resolved.",
            "notify": "1",
            "sys_class_name": "incident",
            "closed_by": {
                "link": "https://dev59401.service-now.com/api/now/table/sys_user/681ccaf9c0a8016400b98a06818d57c7",
                "value": "681ccaf9c0a8016400b98a06818d57c7"
            },
            "follow_up": "",
            "parent_incident": "",
            "sys_id": "1c741bd70b2322007518478d83673af3",
            "contact_type": "self-service",
            "reopened_by": "",
            "incident_state": "7",
            "urgency": "2",
            "problem_id": "",
            "company": {
                "link": "https://dev59401.service-now.com/api/now/table/core_company/31bea3d53790200044e0bfc8bcbe5dec",
                "value": "31bea3d53790200044e0bfc8bcbe5dec"
            },
            "reassignment_count": "2",
            "activity_due": "2016-12-13 01:26:36",
            "assigned_to": {
                "link": "https://dev59401.service-now.com/api/now/table/sys_user/5137153cc611227c000bbd1bd8cd2007",
                "value": "5137153cc611227c000bbd1bd8cd2007"
            },
            "severity": "3",
            "u_account_name": {
                "link": "https://dev59401.service-now.com/api/now/table/core_company/f66b14e1c611227b0166c3a0df4046ff",
                "value": "f66b14e1c611227b0166c3a0df4046ff"
            },
            "comments": "",
            "approval": "not requested",
            "sla_due": "",
            "comments_and_work_notes": "",
            "due_date": "",
            "sys_mod_count": "22",
            "u_case_source": "Phone\r\nEmail\r\nWeb",
            "reopen_count": "0",
            "sys_tags": "",
            "u_salesforce_ticket": "00001050",
            "escalation": "0",
            "upon_approval": "proceed",
            "correlation_id": "",
            "location": "",
            "category": "inquiry"
        }
     
            
           
           
    ]
}
Please parse my json String i am working on last one week but still can't get solution  please help.
 
Raj VakatiRaj Vakati
But the easiest way of Parsing JSON would be to de-serialize it into an Object. 

The JSON2Apex is a very handy tool for this. Goto http://json2apex.herokuapp.com/ and paste the JSON String in the space provided, and click on create Apex.

http://blog.adityanaag.com/22/Parsing+JSON+the+easy+way+using+Apex
https://json2apex.herokuapp.com/

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_json_jsonparser.htm
https://www.lopau.com/demystifying-json-parsing-in-apex/
https://webkul.com/blog/json-parsing-salesforce/