Skip to content

📚 Documentation: Manual execution JSON example in Cloud Functions is incorrect #6247

Closed

Description

@JorensM

💭 Description

Currently, in the Cloud Functions JSON example, the example has no quotes

json-no-quotes

As you can see in the image above, the JSON example doesn't have any quotes around the property name.

When I run my function and pass JSON without quotes around property names, I get an error:

json-no-quotes-err

But when I run the function with quotes, like so:

json-with-quotes

The function executed successfully.

So the JSON example is incorrect and it should show quotes around property names

I'm not sure if this is fixed in the newer versions or if newer versions support JSON without quotes, but in the current version that Cloud is using, I get an error.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Activity

  1. ItzNotABug commented on Sep 15, 2023

    @ItzNotABug
    Contributor

    This was fixed on later versions, I believe (can confirm for 1.3.8).
    Cloud is soon going to be updated to 1.4x which will anyway contain the fix.

  2. JorensM commented on Sep 16, 2023

    @JorensM
    Author

    @ItzNotABug Ok thanks. For clarity, does the fix change the example to have quotes, or does the fix allow you to pass unquoted properties in the payload?

  3. ItzNotABug commented on Sep 16, 2023

    @ItzNotABug
    Contributor

    @JorensM
    The example is fixed.
    You should always use the standard JSON format with double quotes for sending payloads.

  4. JorensM commented on Sep 16, 2023

    @JorensM
    Author

    @ItzNotABug Ok, thanks. I will close this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions