Could not Jason parse

Hello everyone

I’m trying to send article contents i generated from open AI ChatGPT to my Wixapix site but it is not giving me “status code 400” and data message says “it could not parse Jason”

i need help resolving this

Welcome to the Make community!

Your screenshot and error message doesn’t provide sufficient information to answer your question.

If you need further assistance, please provide the following:

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.


(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Input/Output bundles

Please provide the input and output bundles of the trigger/iterator/aggregator modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

blueprint article copy work.json (135.7 KB)

Above is the scenario blueprint.

below is the HTTP module output bundle:

[
{
“statusCode”: 400,
“headers”: [
{
“name”: “date”,
“value”: “Fri, 21 Jun 2024 01:50:13 GMT”
},
{
“name”: “content-type”,
“value”: “application/json”
},
{
“name”: “content-length”,
“value”: “47”
},
{
“name”: “x-wix-responded-by”,
“value”: “wix.blog.v3.draft:CreateDraftPost”
},
{
“name”: “x-seen-by”,
“value”: “yI4PPEXc3bvXNWfpzSkUarxkNjrXdwdgtu6E0yACibU=,m0j2EEknGIVUW/liY8BLLu+FRpJ7Pfgm/sl8ebaGt4OWWveFEnegpnkLxzZh8fhS,rXUceJIlvIg2Ftogbhjv0HJijFbYn4bgwQovJkU76ztEQfi00LSS7LJu7sdkoLsD1GRRSFumHhDLG2MhDsFGvw==,r6yY0ta7bIKrqK70x072lYUTo/D3ilOMF7PJTL1+sEQ=”
},
{
“name”: “x-wix-request-id”,
“value”: “1718934613.34026165822265817916”
},
{
“name”: “set-cookie”,
“value”: “XSRF-TOKEN=1718934613|9ejN_0hqq7S7; Path=/; Domain=www.wixapis.com; Secure; SameSite=None”
},
{
“name”: “server”,
“value”: “Pepyaka”
},
{
“name”: “x-content-type-options”,
“value”: “nosniff”
},
{
“name”: “via”,
“value”: “1.1 google”
},
{
“name”: “glb-x-seen-by”,
“value”: “wMMTADooq5AJ3cFomJ/MuXOQWGce7NCZXKms1ErOpBs=”
},
{
“name”: “alt-svc”,
“value”: “h3=":443"; ma=2592000,h3-29=":443"; ma=2592000”
},
{
“name”: “connection”,
“value”: “close”
}
],
“cookieHeaders”: [
“XSRF-TOKEN=1718934613|9ejN_0hqq7S7; Path=/; Domain=www.wixapis.com; Secure; SameSite=None”
],
“data”: {
“message”: “Could not parse JSON”,
“details”: {}
},
“fileSize”: 47
}
]

Hello, I’m more interested in the input bundle in your case, because that’s what the error message is referring to.

Also, could you please format your bundle code? Otherwise it becomes invalid.

1. This forum might have or already changed your text

When pasting text into this forum, you MUST format the example text using the rich-text editor, otherwise the forum software might modify the displayed text, and you might get incorrect answers from others because of it.

Some things this forum software might do to mangle your text:

– remove extra spaces (which may be necessary)
– convert links to titles (when copied is incorrect)
– incorrect joined links
– convert single and double quotes to smart angled quotes ()
– emojis
– etc.

This interferes with you receiving correct answers, because it:

– makes JSON invalid (you can verify when copy-paste into https://jsonformatter.org)
– makes incorrect text examples when we need to build a pattern for text parsing

2. To prevent this in future, please format text in code blocks

A. Type code fence manually
Either add three backticks ``` before and after the text, like this:

```
content goes here
```

B. Highlight and click the format button
Or use the format code button in the editor:
Screenshot_2023-10-02_191027

3. You might need to re-copy the original output bundle

Once the post has been submitted, it’s too late to format it since it’s already butchered, and you need to make a re-copy of the text, and format it before submitting the forum post.

Please let us know once you have corrected the issue. This will avoid others potentially providing wrong answers based on incorrect text in your question.

Thank you!

Join the Make Fans Discord server to chat with other makers!

Input data and output data.docx (19.3 KB)
The input and output data of the http module

The way you are composing the JSON is incorrect,

The content is not placed in a key-value pair in the JSON.

Screenshot_2024-06-21_100621

You can test it out here https://jsonformatter.org/739e1c (click the Validate button)

The above link expires in 30 days.

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

thanks! i tried to validate the code on the jason formatter link you sent. the status says line 48 is not properly fromatted. I tried to do some adjustments and wanted to do another validation but the link is expired already. i think it was for 30 minutes.

The link https://jsonformatter.org/739e1c still works for me.

You can always create a new “Save” on jsonformatter, but the link will change.