json to excel conversion

kwame84

New Member
Joined
Feb 11, 2017
Messages
6
Office Version
  1. 2019
Platform
  1. Windows
I have the sample file below that I need to convert to excel with specific headers. I need to convert the json data to the following excel table format:


},
"relationshipExternalIdentifier": {
"example": "5003000000D8cuI",
"type": "string"
},
"name": {
"example": "Sample Opportunity",
"type": "string"
},
"lastModifiedBy": {
"example": "user@bank.com",
"type": "string"
},
"closeDate": {
"format": "date-time",
"type": "string"

},
"firstMonthRegulatoryRiskWeightedAssets": {
"format": "double",
"type": "number"


Field NameTypeFormatExample
relationshipExternalIdentifierstring5003000000D8cuI
namestringSample Opportunity
lastModifiedBystringuser@bank.com
closeDatestringdate-time
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I've been playing around with power query and I'm running into a complication where my json file has parent and child values . How do I extract everything into one excel. Power query will only show me the parent with the child as a record link. when I click that i lose everything from the parent. not sure if this makes sense.

For example, the "financialStatement" (row 18) has a child record in column "Value.properties." How do I extract that record and all records into one excel sheet without having to click each child record and manually extract one at a time?

1634788787049.png



Here's the sample json file with the parent/child sections.


{
"items": {
"type": "object",
"properties": {
"clientId": {
"format": "uuid",
"example": "b92cd14b-692b-4acc-95eb-40605a499dab",
"type": "string"
},
"relationshipExternalIdentifier": {
"example": "5003000000D8cuI",
"type": "string"
},
"name": {
"example": "Sample Opportunity",
"type": "string"
},
"lastModifiedBy": {
"example": "user@bank.com",
"type": "string"
},
"closeDate": {
"format": "date-time",
"type": "string"
},
"prospectId": {
"format": "uuid",
"example": "d6d254ca-3779-4135-8283-362dd4b98907",
"type": "string"
},
"relationshipId": {
"format": "uuid",
"example": "b92cd14b-692b-4acc-95eb-40605a499dab",
"type": "string"
},
"externalSystemId": {
"example": "4207000000D8cuI",
"type": "string"
},
"id": {
"format": "uuid",
"example": "b92cd14b-692b-4acc-95eb-40605a499dab",
"type": "string"
},
"prospectName": {
"example": "Sample Prospect",
"type": "string"
},
"created": {
"format": "date-time",
"type": "string"
},
"lastModified": {
"format": "date-time",
"type": "string"
},
"relationship": {
"example": "Food Truck",
"type": "string"
},
"probability": {
"format": "double",
"example": 0.1,
"type": "number"
},
"pricingDate": {
"format": "date-time",
"type": "string"
},
"stage": {
"example": "Quoted",
"type": "string"
},
"creator": {
"example": "user@bank.com",
"type": "string"
},
"financialStatement": {
"type": "object",
"properties": {
"otherAppliedEarningsCredit": {
"format": "double",
"type": "number"
},
"interestExpense": {
"format": "double",
"type": "number"
},
"taxes": {
"format": "double",
"type": "number"
},
"lastCalculated": {
"format": "date-time",
"type": "string"
},
"otherAccountRevenueEarningsCreditGenerated": {
"format": "double",
"type": "number"
 

Attachments

  • 1634788774117.png
    1634788774117.png
    76.1 KB · Views: 11
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top