Skip to content

Commit

Permalink
Merge pull request #1580 from EventStore/allow-json-array-http-api
Browse files Browse the repository at this point in the history
Allow event data/metadata to be stored as JSON array through HTTP API
  • Loading branch information
hayley-jean committed Mar 28, 2018
2 parents 445e561 + 04efdee commit f7e1b77
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -175,7 +175,7 @@ private static Event[] Parse(HttpClientMessageDto.ClientEventDynamic[] dynamicEv

private static byte[] AsBytes(object obj, out bool isJson)
{
if (obj is JObject)
if (obj is JObject || obj is JArray)
{
isJson = true;
return Helper.UTF8NoBom.GetBytes(Codec.Json.To(obj));
Expand Down

0 comments on commit f7e1b77

Please sign in to comment.