Serializing state in middleware #447
Closed
samuelschnurr
started this conversation in
General
Replies: 1 comment
-
Found the solution. Problem just was the state was serialized twice. JsonSerializer.Serialize(state); ist not needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to serialize a state in my Fluxor middleware. Access is possible via
The problem is, "state" is now a object and the .ToString() evalutes to:
'MyState { MyProperty = False }'
When I serialize it with
JsonSerializer.Serialize(state);
, the result will be'{"MyProperty":false}'
or
"{\u0022MyProperty\u0022:false}"
How can I serialize the state to get just the normal state like
{"MyProperty" : false}
Beta Was this translation helpful? Give feedback.
All reactions