refactor serde interfaces and impls
[awesomized/ext-ion] / docs / tutorial / : Tutorial / :2. What is ion.md
index b43bac9cd40120cb32333ce7f5cc6598bcb3af41..cd25305193894fc0dfd60ae9e0d3d6792b74c9ca 100644 (file)
@@ -1,5 +1,15 @@
 # What Is Ion?
 
+<!--
+<?php
+if (!function_exists("var_representation")) { 
+       function var_representation($v) {
+               return print_r($v,true);
+       }
+}
+?>
+-->
+
 Quoting the [official Ion documentation](https://amzn.github.io/ion-docs/):
 
 **Amazon Ion** is a [richly-typed](ion/:%20Tutorial/:1.%20Getting%20started#Rich.type.system), [self-describing](ion/:%20Tutorial/:1.%20Getting%20started#Self-describing), hierarchical data serialization format offering [interchangeable binary and text](https://amzn.github.io/ion-docs/guides/why.html#dual-format-interoperability) representations. The [text format](https://amzn.github.io/ion-docs/docs/spec.html) (a superset of [JSON](http://json.org/)) is easy to read and author, supporting rapid prototyping. 
@@ -104,7 +114,7 @@ var_representation(
   ion\unserialize('
     {"key":"value","more":{"data":123}}
     {"key":"value","more":{"data":456}}
-  ', new ion\Unserializer\PHP(multiSequence: true)
+  ', new ion\Unserializer\Unserializer(multiSequence: true)
   )
 );
 ?>