我在尝试从中读取时收到此错误JObject
,C#
这PHP
是基本查询的结果"SELECT * FROM items"...
Unexpected character encountered while parsing value: S. Path '', line 0, position 0.
PHP
$query = ($_POST["test"]);
if ($result = $mysqli->query($query)
{
$jsonResult = json_encode($result);
}
echo $jsonResult;
C#
public JObject GetThat()
{
HttpWebResponse WebResp = (HttpWebResponse)WebReq.GetResponse();
Stream Answer = WebResp.GetResponseStream();
string phpResponse = Answer.ToString();
JObject myResult = JObject.Parse(phpResponse);
return myResult;
}
我究竟做错了什么?谢谢。