Need help with if else condition?

[
{
“type_of_trip”:[
“1”
],
“dep_oplace1”:[
“Bengaluru”
],
“dep_ocity1”:[
“sdfsdfsd”
],
“dep_date”:[
“2020-03-22”
],
“time_zone3”:[
“00:00”
],
“arr_oplace1”:[
“Calicut”
],
“arr_ocity1”:[
“sdfffffff”
]
}
]

this is json format which I am trying to insert into database but each time i am getting array to string conversion error.

Sponsor our Newsletter | Privacy Policy | Terms of Service