Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is a JSON string valid to be used in attachment data json? #808

Open
TimoGlastra opened this issue Jan 8, 2024 · 0 comments
Open

Is a JSON string valid to be used in attachment data json? #808

TimoGlastra opened this issue Jan 8, 2024 · 0 comments

Comments

@TimoGlastra
Copy link
Member

TimoGlastra commented Jan 8, 2024

When using attachments with the json keyword, it is expected that the value is JSON.

JSON also sees an ecoded string (e.g. "Timo") as valid JSON, so are these also allowed as the value for JSON attachments, or are only JSON arrays and JSON objects allowed and should the base64 encoding be used in this case (there's no need to re-encode really, we already have a base type of JSON).

See https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON#other_notes for note that any json value is valid JSON in itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant