Azure / Azure/azure-functions-host

Support json as a dataType for queueTrigger

Open
#4,207 7 comments 0 reactions 1 assignee Claimed by @pragnagopa View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

#### Repro steps

1. Have a queue trigger
2. Insert a json string into the queue as the message data: `{"hello":"World"}`

#### Expected behavior

Function receives the json as a json object so it can be properly turned into a hashtable for PowerShell Function users

#### Actual behavior

Function receives the json as a string and it gets passed in as a string.

#### Known workarounds

```powershell
param($QueueItem)

$parsedData = $QueueItem | ConvertFrom-Json
```

#### Related information

* Programming language used - `powershell`
* Bindings used - `queueTrigger`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.