skip to Main Content

Json – Search for text in an array nodeJS

I have the following data let rawdata = fs.readFileSync('test.json'); let orders = JSON.parse(rawdata); Rawdata data looks like this [{"order":["Awaiting delivery","Order date: Dec 18, 2022","Order ID: 11111111","Copy","Order details","store name","product name","1, 1","US $1.73x1","Total: US $5.39","Confirm receipt","Track order"]},{"order":["Awaiting delivery","Order date: Dec 18, 2022","Order…

VIEW QUESTION

Parse string of comma-sperated names and emails to create an array of associative rows – PHP

I get this specific string from a Mysql DB: $string = "john('[email protected]'), frank('[email protected]'),simon('[email protected]')"; I need to have the string inserted in the following code: $sendSmtpEmail = new SendinBlueClientModelSendSmtpEmail([ 'subject' => 'Report', 'sender' => ['name' => 'sender', 'email' => '[email protected]'], 'to'…

VIEW QUESTION
Back To Top
Search