<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.figuramc.org/index.php?action=history&amp;feed=atom&amp;title=PrintJson</id>
	<title>PrintJson - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.figuramc.org/index.php?action=history&amp;feed=atom&amp;title=PrintJson"/>
	<link rel="alternate" type="text/html" href="https://wiki.figuramc.org/index.php?title=PrintJson&amp;action=history"/>
	<updated>2026-04-28T10:27:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.figuramc.org/index.php?title=PrintJson&amp;diff=642&amp;oldid=prev</id>
		<title>PenguinEncounter: add &#039;aliases&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.figuramc.org/index.php?title=PrintJson&amp;diff=642&amp;oldid=prev"/>
		<updated>2024-10-25T06:49:38Z</updated>

		<summary type="html">&lt;p&gt;add &amp;#039;aliases&amp;#039;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:49, 25 October 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{lowercase}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{lowercase}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{aliases|logJson}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Arguments&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Arguments&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-640:rev-642:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>PenguinEncounter</name></author>
	</entry>
	<entry>
		<id>https://wiki.figuramc.org/index.php?title=PrintJson&amp;diff=640&amp;oldid=prev</id>
		<title>PenguinEncounter: Created page with &quot;{{lowercase}} {| class=&quot;wikitable&quot; ! Arguments ! Returns |- | {{type|string...}} | {{Type|string}} |}  Displays any amount of arguments without separators or the &lt;code&gt;[lua]&lt;/code&gt; prefix. The return value is the displayed text without the formatting. If an argument is a {{type|string}}, it is interpreted as a [https://minecraft.wiki/w/Raw_JSON_text_format JSON text component], or if that fails, the string is displayed directly. All other types are displayed using [https...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.figuramc.org/index.php?title=PrintJson&amp;diff=640&amp;oldid=prev"/>
		<updated>2024-10-25T06:47:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{lowercase}} {| class=&amp;quot;wikitable&amp;quot; ! Arguments ! Returns |- | {{type|string...}} | {{Type|string}} |}  Displays any amount of arguments without separators or the &amp;lt;code&amp;gt;[lua]&amp;lt;/code&amp;gt; prefix. The return value is the displayed text without the formatting. If an argument is a {{type|string}}, it is interpreted as a [https://minecraft.wiki/w/Raw_JSON_text_format JSON text component], or if that fails, the string is displayed directly. All other types are displayed using [https...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{lowercase}}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Arguments&lt;br /&gt;
! Returns&lt;br /&gt;
|-&lt;br /&gt;
| {{type|string...}}&lt;br /&gt;
| {{Type|string}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Displays any amount of arguments without separators or the &amp;lt;code&amp;gt;[lua]&amp;lt;/code&amp;gt; prefix.&lt;br /&gt;
The return value is the displayed text without the formatting.&lt;br /&gt;
If an argument is a {{type|string}}, it is interpreted as a [https://minecraft.wiki/w/Raw_JSON_text_format JSON text component],&lt;br /&gt;
or if that fails, the string is displayed directly.&lt;br /&gt;
All other types are displayed using [https://www.lua.org/manual/5.2/manual.html#pdf-tostring &amp;lt;code&amp;gt;tostring&amp;lt;/code&amp;gt;].&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Displays &amp;quot;Hello, world!&amp;quot; in green&lt;br /&gt;
printJson [[{&amp;quot;text&amp;quot;: &amp;quot;Hello, world!&amp;quot;, &amp;quot;color&amp;quot;: &amp;quot;green&amp;quot;}]]&lt;br /&gt;
-- Displays the name of the avatar in gold (example of dynamic text)&lt;br /&gt;
printJson(toJson {&lt;br /&gt;
    text = avatar:getName(),&lt;br /&gt;
    color = &amp;quot;gold&amp;quot;&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[toJson]]&lt;br /&gt;
* [https://misode.github.io/text-component/ Misode&amp;#039;s text component generator]&lt;/div&gt;</summary>
		<author><name>PenguinEncounter</name></author>
	</entry>
</feed>