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

[2.1] Fix metadata JSON parse function #2816

Conversation

vitoyucepi
Copy link
Collaborator

Summary

Fix incorrect json.parse usage in metadata.json.parse.

Test functions

  • metadata.json.stringify
  • metadata.json.parse

Fixes #2812.

(cherry picked from commit b34e42d)

This patch fixes the inability to parse metadata from the JSON string
described in savonet#2812. Since version 2.1.0 it's necessary to specify
json.object if json.parse used with the unknown json object keys.
Add tests for functions metadata.json.stringify and metadata.json.parse.

(cherry picked from commit b34e42d)
@toots toots merged commit 5ec00d9 into savonet:rolling-release-v2.1.x Dec 30, 2022
@vitoyucepi vitoyucepi deleted the backport-2.1/metadata-json-parse branch February 18, 2023 20:09
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

Successfully merging this pull request may close these issues.

2 participants