** A value that is written out verbatim by 'JsonWriter'.** ** Use 'JsLiterals' to embed Javascript in your JSON objects. Note that the resultant string is no ** longer valid JSON, but can sometimes be a good get out of jail card.** ** pre>** syntax: fantom** jsonWriter.writeJson([** "func" : JsLiteral("function() { ... }")** ])** ** // --> { "func" : function() { ... } }** <pre** ** Note that without 'JsLiteral', the function would be surrounded in quotes:** ** pre>** syntax: fantom** jsonWriter.writeJson([** "func" : "function() { ... }"** ])** ** // --> { "func" : "function() { ... }" }** <pre** @Js @Serializable { simple = true}class JsLiteral {** The literal value. Str val** Creates a 'JsonLiteral'.new fromStr(Str val){this.val = val} @NoDocoverride Str toStr(){ val } @NoDocoverride Int hash(){ val.hash } @NoDocoverride Bool equals(Obj? that){(that as JsLiteral)?.val == val}}