29 using OpenMetaverse.StructuredData;
31 namespace OpenSim.Framework.Servers.HttpServer
37 public const int ParseError = -32700;
38 public const int InvalidRequest = -32600;
39 public const int MethodNotFound = -32601;
40 public const int InvalidParams = -32602;
41 public const int InternalError = -32604;
53 if (Error.ContainsKey(
"code"))
54 return Error[
"code"].AsInteger();
60 Error[
"code"] = OSD.FromInteger(value);
68 if (Error.ContainsKey(
"message"))
69 return Error[
"message"].AsString();
75 Error[
"message"] = OSD.FromString(value);
91 return Reply[
"jsonrpc"].AsString();
95 Reply[
"jsonrpc"] = OSD.FromString(value);
103 return Reply[
"id"].AsString();
107 Reply[
"id"] = OSD.FromString(value);
131 Reply[
"result"] = Result;
135 Reply[
"error"] = (
OSD)Error.Error;
138 string result = string.Empty;
141 result = OSDParser.SerializeJsonString(Reply);
OpenMetaverse.StructuredData.OSDMap OSDMap
OpenMetaverse.StructuredData.OSD OSD