Skip to main content
Inspiring
July 26, 2022
Answered

Script inside Cep panel Error: JSON.parse

  • July 26, 2022
  • 1 reply
  • 367 views

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}

 

This topic has been closed for replies.
Correct answer Krishna Kumar22556352ieq8

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"

 

1 reply

Krishna Kumar22556352ieq8AuthorCorrect answer
Inspiring
July 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"