I have a dict with child like this:
{
"bookname" : "Harry Potter",
"book_details" : {
"amount" : 12,
"price" : 1000,
}
}
I want to covert dict to below:
{
"bookname" : "Harry Potter",
"book_details_amount" :12,
"book_details_price": 1000
}