Add WhiteCore's LL Json functions

This commit is contained in:
Melanie Thielker
2015-05-26 21:05:00 +02:00
committed by root
parent 4b066d373b
commit 9766dc1f81
4 changed files with 279 additions and 0 deletions

View File

@@ -788,6 +788,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
public const int KFM_CMD_STOP = 1;
public const int KFM_CMD_PAUSE = 2;
public const string JSON_ARRAY = "JSON_ARRAY";
public const string JSON_OBJECT = "JSON_OBJECT";
public const string JSON_INVALID = "JSON_INVALID";
public const string JSON_NUMBER = "JSON_NUMBER";
public const string JSON_STRING = "JSON_STRING";
public const string JSON_TRUE = "JSON_TRUE";
public const string JSON_FALSE = "JSON_FALSE";
public const string JSON_NULL = "JSON_NULL";
public const string JSON_APPEND = "JSON_APPEND";
/// <summary>
/// process name parameter as regex
/// </summary>

View File

@@ -2029,5 +2029,30 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
{
return m_LSL_Functions.llGetAnimationOverride(anim_state);
}
public LSL_String llJsonGetValue(LSL_String json, LSL_List specifiers)
{
return m_LSL_Functions.llJsonGetValue(json, specifiers);
}
public LSL_List llJson2List(LSL_String json)
{
return m_LSL_Functions.llJson2List(json);
}
public LSL_String llList2Json(LSL_String type, LSL_List values)
{
return m_LSL_Functions.llList2Json(type, values);
}
public LSL_String llJsonSetValue(LSL_String json, LSL_List specifiers, LSL_String value)
{
return m_LSL_Functions.llJsonSetValue(json, specifiers, value);
}
public LSL_String llJsonValueType(LSL_String json, LSL_List specifiers)
{
return m_LSL_Functions.llJsonValueType(json, specifiers);
}
}
}