mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Response BodyAsJson with array does not work #401
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MarwaAloui on GitHub (Feb 8, 2022).
Hello, i want to configure the response of WirMock as BodyAsJson and inside i have an array of object
when i execute i have an error :
{ "Status": "Object serialized to Array. JObject instance expected." }is it a bug?
@StefH commented on GitHub (Feb 9, 2022):
@MarwaAloui
I tried to reproduce your error:
However this works fine?

@MarwaAloui commented on GitHub (Feb 9, 2022):
Thank you for your quick response
i retried without "UseTransformer": true, and it works well.
@StefH commented on GitHub (Feb 9, 2022):
I see.
I'll check the code.
@StefH commented on GitHub (Feb 9, 2022):
It's fixed.
A new version will be released soon.