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

Can't access JValue properties #1001

Closed
sebastienros opened this issue Nov 4, 2021 · 3 comments · Fixed by #1002
Closed

Can't access JValue properties #1001

sebastienros opened this issue Nov 4, 2021 · 3 comments · Fixed by #1002

Comments

@sebastienros
Copy link
Owner

Given this JObject payload:

"Properties": {
"x": {
"Type": "Content",
"ContentId": "4m1pcbaa6t6gzr87qebcw0ysc1"
},
"expirationDate": {
"Value": "2021-10-09T00:00:00Z"
}
}

Trying to access the Value fails when the JValue contains a DateTime

@lahma
Copy link
Collaborator

lahma commented Nov 4, 2021

Caused by the fact that JObjectis IDictionary<string, JToken> instead of the latest fix targeting IDictionary<string, object>

@lahma
Copy link
Collaborator

lahma commented Nov 4, 2021

I'm working on a generic fix.

@sebastienros
Copy link
Owner Author

Thought about it since I had to handle it in Fluid, but didn't want to pay the price.

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 a pull request may close this issue.

2 participants