Skip to content

Question #5

Open
Open

Description

@briankgarland

Can this be used with a service that pulls in data from an API so that this:

{
"Person": [
{
"Person_ID": "0000",
"First_Name": "Tamara",
"Last_Name": "Truck",
"Employee_Status_Description": "Terminated",
"Location_Country_2Char_Code": "",
"Business_Phone_number": "",
"BusinessMobile_Phone_number": "",
"Business_Email": "",
"Job_Description": "Assistant Distribution Center Mgr"
},
{
"Person_ID": "TEST1",
"First_Name": "Employee",
"Last_Name": "One",
"Employee_Status_Description": "Active",
"Location_Country_2Char_Code": "",
"Business_Phone_number": "1098765432",
"BusinessMobile_Phone_number": "",
"Business_Email": "eric.wojnar@awesome.com",
"Job_Description": ""
}
]
}

Just becomes this:

    {
        "Person_ID": "0000",
        "First_Name": "Tamara",
        "Last_Name": "Truck",
        "Employee_Status_Description": "Terminated",
        "Location_Country_2Char_Code": "",
        "Business_Phone_number": "",
        "BusinessMobile_Phone_number": "",
        "Business_Email": "",
        "Job_Description": "Assistant Distribution Center Mgr"
    },
    {
        "Person_ID": "TEST1",
        "First_Name": "Employee",
        "Last_Name": "One",
        "Employee_Status_Description": "Active",
        "Location_Country_2Char_Code": "",
        "Business_Phone_number": "1098765432",
        "BusinessMobile_Phone_number": "",
        "Business_Email": "eric.wojnar@awesome.com",
        "Job_Description": ""
    }

If so, what does the code look like? In the service or the app component?

Activity

  1. SinestroWhite commented on Oct 20, 2019

    @SinestroWhite
    Owner

    Is the first object pasted above the complete response from the API? If no, can you provide a more complete example?

  2. briankgarland commented on Oct 22, 2019

    @briankgarland
    Author

    Yes, it is. But we haven’t decided to just write our own custom code. Thanks for the reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions