AnsweredAssumed Answered

Json for filter POST

Question asked by Nupur Nupur on Oct 9, 2015
I am a newbie, and am having a hard time figuring out the rest calls for the v7.6 API. I am using c# to create the rest calls. I am trying the filter POST module, and am using I use System.Net.HttpWebRequest  to make the call. I am sending as a string the following -

_______________
{"session":"sdgergdadh","filter":[{"name":"John Smith"}],"max_num":2}
__________________

This does not work. 
My payload for the old API, which works, is

_____________________
--xxxrrrrttdhasfhxf
Content-Disposition: form-data; name="method"

login
--xxxrrrrttdhasfhxf
Content-Disposition: form-data; name="input_type"

JSON
--xxxrrrrttdhasfhxf
Content-Disposition: form-data; name="response_type"

JSON
--xxxrrrrttdhasfhxf
Content-Disposition: form-data; name="rest_data"

{"user_auth":{"user_name":"SugarCRM_SugarABC","password":"xxxx"},"application_name":"SugarABC","name_value_list":[]}
--xxxrrrrttdhasfhxf--

Any help would be super appreciated. I have been looking at all the code and am rather confused.

Outcomes