You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by da...@aol.com on 2017/01/03 07:33:34 UTC
json in multi part response
I'm working with a HTTP web service that returns json in a multi part response. Are there any libraries that can help me parse the JSON from the multipart response? Here is the example of what the response looks like I want to extract "{SOMEJSON}" and "{ANOTHERJSON}"
--Boundary_11484410_1140855603_1483010655979
Content-Type: application/json
Content-RequestId: SaveMessage
Status-Code: 200
Content-RequestDuration: 146
{SOMEJSON}
--Boundary_11484410_1140855603_1483010655979
Content-RequestId: Status
Content-Type: application/json
{ANOTHERJSON}
--Boundary_11484410_1140855603_1483010655979--
I want to extract "{SOMEJSON}" and "{ANOTHERJSON}"
Any reliable way to do this?