I'm trying to import json file into a PostgreSQL. Example data:
{
"asin":"2094869245",
"title":"5 LED Bicycle Rear Tail Red Bike Torch Laser Beam Lamp Light",
"price":8.26,
"imhUrl":"http://ecx.images-amazon.com/images/I/51RtwnJwtBL._SY300_.jpg"
}
{
"asin":"7245456259",
"title":"Black Mountain Products Single Resistance Band - Door Anchor,
"price":10.49,
"imhUrl":"http://ecx.images-amazon.com/images/I/411Ikpf122L._SY300_.jpg"
}`
Would like the result to look like:
data
--------------------------------------------------------------------
{
"asin":"2094869245",
"title":"5 LED Bicycle Rear Tail Red Bike Torch Laser Beam Lamp Light",
"price":8.26,
"imhUrl":"http://ecx.images-amazon.com/images/I/51RtwnJwtBL._SY300_.jpg"
}
--------------------------------------------------------------------
{
"asin":"7245456259",
"title":"Black Mountain Products Single Resistance Band - Door Anchor,
"price":10.49,
"imhUrl":"http://ecx.images-amazon.com/images/I/411Ikpf122L._SY300_.jpg"
}
The data is type json.
My JSON FILE will be stored in a single JSON column called data.