﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35310	Optimize automatic JSON encoding of data in test client	Kasun Herath	Kasun Herath	"Test client post, put, patch and delete methods automatically encode request data to JSON if `content_type` parameter is set to `application/data`. 

Example
{{{
client.post(url, data=data, content_type=""application/json"")
}}}
Would automatically encode data as JSON.

We could also check the headers for content_type header and do the automatic encoding to be consistent.

example
{{{
client.post(url, data=data, headers={""content_type"": ""application/json""})
}}}

Can automatically encode data into JSON using the same mechanism."	Cleanup/optimization	closed	Testing framework	dev	Normal	wontfix			Unreviewed	0	0	0	0	0	0
