From 9766dc1f81521684a892fea60c87514183cc6d42 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Tue, 26 May 2015 21:05:00 +0200 Subject: Add WhiteCore's LL Json functions --- .../Shared/Api/Runtime/LSL_Constants.cs | 10 +++++++++ .../ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs | 25 ++++++++++++++++++++++ 2 files changed, 35 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs index e6ab6ec..0e22ff3 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs @@ -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"; + /// /// process name parameter as regex /// diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs index 78c41a7..5047162 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs @@ -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); + } } } -- cgit v1.1