Can anyone assist with printing the variable below in the specified format?
Data
export const shop_items: Inventory:{
Toys{
Balls: {
BallId: 001uy,
BallName: Soccerball,
SignedBy: David_Beckham,
},
},
Books:{
Novel: {
BookId: ‘001fd’,
BookName: ‘Beauty and the beast’,
},
Puzzle: {
BookId: ‘002sz’,
BookName: ‘Sherlock Holmes’,
},
Sci-fi: {
BookId: ’003tr’,
BookName: ‘Dr.Gadget’,
},
}
}
Format
The toy variables are to be printed as is, while the data under Books should be displayed in a specific path format.
BallId : 001uy
BallName : Soccerball
SignedBy : David_Beckham
/Books/Novel/BookId : 001fd
/Books/Puzzle/BookId : 002sz
/Books/Sci-fi/BookId : 003tr