How would I write a code to read in this book.txt
title*Programming PHP
author*Lerdorf, Tatroe and MacIntyre
publisher*O'Reilly Media
description*3
This book covers the PHP programming language.
It assumes the reader has some programming experience.
It covers connecting to Oracle and MySQL databases.
title*Core PHP Programming
author*Atkinson
publisher*Pearson Education
description*3
This book starts with an introduction to PHP.
It covers PHP's built-in functions and also
discusses some searching and sorting algorithms
and turn it into a json file like this
{
"books": [
{"title":"Programming PHP",
"author":"Lerdorf, Tatroe and MacIntyre",
"publisher":"O'Reilly Media",
"description":
[
"This book covers the PHP programming language.",
"It assumes the reader has some programming experience.",
"It covers connecting to Oracle and MySQL databases."
]
},
{"title":"Core PHP Programming",
"author":"Atkinson",
"publisher":"Pearson Education",
"description":
[
"This book starts with an introduction to PHP.",
"It covers PHP's built-in functions and also",
"discusses some searching and sorting algorithms"
]
}
]
}
. I'm thinking this a dictionary, but I don't know much. Please if you help me can you write a simplest code in python, Thank-you for the help.