llList2Json/de

From Second Life Wiki
< LlList2Json
Revision as of 15:03, 18 October 2013 by Kireji Haiku (talk | contribs) (fixed page...at least seems so)
Jump to navigation Jump to search

Summary

Function: string llList2Json( string type, list values );

Diese Funktion erwartet eine Liste und gibt sie als JSON - String zurück, entweder als JSON-Objekt oder als JSON-Array.
Returns a string Gibt einen String zurück der entweder als JSON Typ serialisierte Werte enthält, oder JSON_INVALID wenn ein Fehler aufgetreten ist.

• string type
• list values

Um einen Json-String in eine Liste zu konvertieren, verwenden Sie bitte llJson2List.

Specification

Siehe auch Json_usage_in_LSL

  • Wenn der Typ ein JSON_OBJECT ist, muss die Liste eine 'strided' Liste aus Schlüssel-Wert-Paaren sein, und als Ergebnis zurückgegeben wird ein String der ein Json - Objekt darstellt.
  • Wenn der Typ ein JSON_ARRAY ist, wird ein String der ein Json - Array darstellt als Ergebnis zurückgegeben.
  • Wenn der Typ kein String ist, wird JSON_INVALID zurückgegeben.

Type Flags Value Unicode Integer URL Encoded HTML Encoded Description
JSON_INVALID U+FDDO 64976 "%EF%B7%90" &#xFDD0; Value returned when inputs are not well formed.
JSON_OBJECT U+FDD1 64977 "%EF%B7%91" &#xFDD1;
JSON_ARRAY U+FDD2 64978 "%EF%B7%92" &#xFDD2;

Examples

See Also

Constants

•  JSON_ARRAY
•  JSON_OBJECT
•  JSON_INVALID

Functions

•  llJson2List
•  llJsonGetValue
•  llJsonSetValue
•  llJsonValueType

Articles

•  Typecast

Deep Notes

History

Date of Release 20/05/2013

Search JIRA for related Issues

Signature

function string llList2Json( string type, list values );

Haiku

Their ships list to port
for what reason I know not
we list to JSON

Listen to Jason
cryptically my sensei said
I must have misheard