Add docs for to_json and from_json

This commit is contained in:
GenevensiS
2025-08-07 20:49:58 +02:00
parent 5fcc5a43fd
commit d3ed8fcaca
6 changed files with 43 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
Function: to_json
--Usage--
> to_json(some_script_value)
Convert a [[type:list]], a [[type:map]], a [[type:card]], a [[type:keyword]], a [[type:pack_type]] or a [[type:set]] to a JSON string.
--Parameters--
! Parameter Type Description
| @input@ some_script_value MSE script value to convert to a JSON string.
| @set@ [[type:set]] The active set. This can be omited since "set" is a predefined variable.
--Examples--
> to_json(card)
--See also--
| [[fun:from_json]] Convert JSON text to an MSE script value.