{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Journeys","product":"Identity Management","type":"markdown"},"seo":{"title":"Expressions: Literals","description":"Everything about Mosaic Journeys, SDKs, and APIs","siteUrl":"https://developer.transmitsecurity.com/","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"expressions-literals","__idx":0},"children":["Expressions: Literals"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Literals in expressions denote constant values."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"numbers","__idx":1},"children":["Numbers"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Numeric literals are always of type ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["number"]},". Numeric values can be specified in decimal form, such as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["123.2"]},". Integer numeric values can also be specified in hexadecimal form by prefixing them with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0x"]},", or in octal form by prefixing them with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0o"]},". For example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0x12"]}," is equivalent to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["18"]}," in decimal form, and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0o52"]}," is equivalent to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["42"]}," in decimal form."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"strings","__idx":2},"children":["Strings"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["String values of type ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}," can be specified inside quotation marks. For example:",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"The string value ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["hello"]}," can be denoted as the string constant ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"hello\""]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To include a quotation mark inside a string, prefix it with a backslash (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\\\""]},"). For example:",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"The string value ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["this is a quotation mark: \""]},"  can be denoted as the expression ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"this is a quotation mark: \\\"\""]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To include a backslash inside a string, prefix it with a backslash (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\\\\"]},"). For example:",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"The string value ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["path\\subpath"]}," can be denoted as the expression ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"path\\\\subpath\""]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"null","__idx":3},"children":["Null"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]}," is a reserved keyword indicating a lack of value. For example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{\"key\": null}"]}," will create a JSON object with a null value for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["key"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The null observes Boolean semantics of having value false. For example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["let x = null return x ? 1 : 0"]}," will return 0."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"boolean","__idx":4},"children":["Boolean"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]}," are reserved keywords indicating Boolean true and false, respectively."]}]},"headings":[{"value":"Expressions: Literals","id":"expressions-literals","depth":1},{"value":"Numbers","id":"numbers","depth":2},{"value":"Strings","id":"strings","depth":2},{"value":"Null","id":"null","depth":2},{"value":"Boolean","id":"boolean","depth":2}],"frontmatter":{"showNextButton":true,"showPrevButton":true,"seo":{"title":"Expressions: Literals"}},"lastModified":"2025-11-18T16:48:04.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/orchestration/getting-started/expressions/literals","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}