Script inside Cep panel Error: JSON.parse

Explorer ,
Jul 26, 2022 Jul 26, 2022

Copy link to clipboard

Copied

how to over come this one 

 

this is   the input  its working while in using extended script but not cep panel i am sending this object as JSON.

stringify but unble to parse it

{"_id":"62dfa58b6282d5bf6b9771b2","invitation_order_id":"invitation_dc7090f9-7a0d-4f1c-ae31-5cf1696aceda","invitation_template_id":"_P65g4stbms","customer_phone_number":"+1 (536) 366-1525","family_name":"Victoria Rhodes","bride_name":"Venus Hall","bride_father_name":"Emily Larson","bride_mother_name":"Harding Herrera","groom_name":"Vera Maldonado","groom_occupation_or_study":"","groom_father_name":"Chiquita Summers","groom_mother_name":"Clarke Reilly","wedding_date_readble_with_week_of_day":"Friday 10th August 1984","wedding_date_readble_with_month_name":"10th August 1984","wedding_date":"1984-08-10","wedding_time":"04:14","wedding_main_venue_name":"Seth Peters","wedding_address":"Quo sed provident h","bride_image":[],"groom_image":[],"couple_image":[{"fieldname":"couple","originalname":"aa.PNG","encoding":"7bit","mimetype":"image/png","destination":"public/uploads/+1 (536) 366-1525","filename":"couple-1658825744659.jpg","path":"public\\uploads\\+1 (536) 366-1525\\couple-1658825744659.jpg","size":1975498,"_id":"62dfac106282d5bf6b9771ca"}],"createdAt":"2022-07-26T08:27:55.386Z","updatedAt":"2022-07-26T08:55:44.701Z","__v":0}

 

Screenshot 2022-07-26 142120.pngScreenshot 2022-07-26 142559.png

TOPICS
SDK

Views

31

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jul 26, 2022 Jul 26, 2022

Its Json file format error . I change this 

path":"public\\uploads\\+1 (536) 366-1525\\couple-1658825744659.jpg"

to this

path":"public/uploads/+1 (536) 366-1525/couple-1658825744659.jpg"

 

Likes

Translate

Translate
Explorer ,
Jul 26, 2022 Jul 26, 2022

Copy link to clipboard

Copied

LATEST

Its Json file format error . I change this 

path":"public\\uploads\\+1 (536) 366-1525\\couple-1658825744659.jpg"

to this

path":"public/uploads/+1 (536) 366-1525/couple-1658825744659.jpg"

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines