��#� �e�l�a�s�t�i�c�-�m�a�p�p�i�n�g�-�g�e�n�e�r�a�t�o�r�
�
�e�l�a�s�t�i�c�-�m�a�p�p�i�n�g�-�g�e�n�e�r�a�t�o�r� �i�s� �a� �t�o�o�l� �t�o� �a�u�t�o�m�a�t�e� �t�h�e� �c�r�e�a�t�i�o�n� �o�f� �j�s�o�n� �f�i�l�e�s� �t�h�a�t� �
�
�h�a�s� ��e�l�a�s�t�i�c�:�m�a�p�p�i�n�g�s�
� �c�o�m�m�e�n�t�s� �a�b�o�v�e� �t�h�e� �d�e�f�i�n�i�t�i�o�n� �o�f� �t�h�e� �s�t�r�u�c�t�.�
�
�
�
�b�y� �d�e�f�a�u�l�t�,� �i�t� �w�i�l�l� �g�e�n�e�r�a�t�e� �o�n�e� �j�s�o�n� �f�i�l�e� �c�a�l�l�e�d� ��<�s�r�c�f�i�l�e�n�a�m�e�>�_�m�a�p�p�i�n�g�s�.�j�s�o�n�
�
�
�a�t� �t�h�e� �s�a�m�e� �d�i�r�e�c�t�o�r�y� �a�s� �t�h�e� �s�o�u�r�c�e� �f�i�l�e�.�
�
�
�
�#�#� �i�n�s�t�a�l�l�
�
��
��b�a�s�h� � �g�o� �i�n�s�t�a�l�l� �g�i�t�h�u�b�.�c�o�m�/�d�a�r�c�y�a�f�/�e�l�a�s�t�i�c�-�m�a�p�p�i�n�g�-�g�e�n�e�r�a�t�o�r� � �
��
�
�
�#�#� �u�s�a�g�e�
�
��
��b�a�s�h� � �U�s�a�g�e� �o�f� �e�l�a�s�t�i�c�-�m�a�p�p�i�n�g�-�g�e�n�e�r�a�t�o�r�:� � � � � � � � � � � �e�l�a�s�t�i�c�-�m�a�p�p�i�n�g�-�g�e�n�e�r�a�t�o�r� �f�i�l�e�s�.�.�.� � � � �-�s�u�f�f�i�x� �s�t�r�i�n�g� � � � � � � � � � �s�u�f�f�i�x� �o�f� �f�i�l�e� �n�a�m�e�;� �d�e�f�a�u�l�t� �_�m�a�p�p�i�n�g�s�.�j�s�o�n� � � � � �e�x�a�m�p�l�e�:� �s�r�c�d�i�r�/�<�s�r�c�f�i�l�e�n�a�m�e�>�_�m�a�p�p�i�n�g�s�.�j�s�o�n� � �
��
�
�
�#�#� �e�x�a�m�p�l�e�
�
�F�o�r� �e�x�a�m�p�l�e�,� �g�i�v�e�n� �t�h�s� �s�n�i�p�p�e�t� �i�n� �u�s�e�r�s�.�g�o�
�
��
��g�o� � � �p�a�c�k�a�g�e� �d�a�t�a� � � � � � �i�m�p�o�r�t� �(� � � � � � �"�t�i�m�e�"� � � � � � � � � �s�u�b�_�d�a�t�a� �"�e�l�a�s�t�i�c�-�m�a�p�p�i�n�g�-�g�e�n�e�r�a�t�o�r�/�d�a�t�a�/�s�u�b�-�d�a�t�a�"� � � �)� � � � � � �/�/�g�o�:�g�e�n�e�r�a�t�e� �e�l�a�s�t�i�c�-�m�a�p�p�i�n�g�-�g�e�n�e�r�a�t�o�r� �.�/�u�s�e�r�s�.�g�o� � � �/�/�e�l�a�s�t�i�c�:�m�a�p�p�i�n�g�s� � � �t�y�p�e� �U�s�e�r� �s�t�r�u�c�t� �{� � � � � � �P�o�s�t�s� � � �s�u�b�_�d�a�t�a�.�P�o�s�t�s� �
�j�s�o�n�:�"�p�o�s�t�s�"�� � � � � � �C�r�e�a�t�e�d� �t�i�m�e�.�T�i�m�e� � � � � � �U�s�e�r�2� � � � � � �N�a�m�e� �s�t�r�i�n�g� �
�j�s�o�n�:�"�n�a�m�e�"�� �ُ/fn�a�m�e� � � � � � �P�a�s�s� �s�t�r�i�n�g� �
�j�s�o�n�:�"�p�a�s�s�"� �e�s�:�"�a�n�a�l�y�z�e�r�:�i�k�_�s�m�a�r�t�"�� � � �}� � � � � � �t�y�p�e� �U�s�e�r�2� �s�t�r�u�c�t� �{� � � � � � �P�a�s�s�2� �s�t�r�i�n�g� �
�j�s�o�n�:�"�p�a�s�s�2�"�� � � �}� � �
��
�
�
�i�t� �w�i�l�l� �g�e�n�e�r�a�t�e� �f�i�l�e�
�
��
�� � �{� � � � � � �"�m�a�p�p�i�n�g�s�"�:� �{� � � � � � � � � � �"�p�r�o�p�e�r�t�i�e�s�"�:� �{� � � � � � � � � � � � � � �"�C�r�e�a�t�e�d�"�:� �{� � � � � � � � � � � � � � � � � � �"�t�y�p�e�"�:� �"�d�a�t�e�"� � � � � � � � � � � � � � �}�,� � � � � � � � � � � � � � �"�n�a�m�e�"�:� �{� � � � � � � � � � � � � � � � � � �"�t�y�p�e�"�:� �"�t�e�x�t�"� � � � � � � � � � � � � � �}�,� � � � � � � � � � � � � � �"�p�a�s�s�"�:� �{� � � � � � � � � � � � � � � � � � �"�a�n�a�l�y�z�e�r�"�:� �"�i�k�_�s�m�a�r�t�"�,� � � � � � � � � � � � � � � � � � �"�t�y�p�e�"�:� �"�t�e�x�t�"� � � � � � � � � � � � � � �}�,� � � � � � � � � � � � � � �"�p�a�s�s�2�"�:� �{� � � � � � � � � � � � � � � � � � �"�t�y�p�e�"�:� �"�t�e�x�t�"� � � � � � � � � � � � � � �}�,� � � � � � � � � � � � � � �"�p�o�s�t�s�"�:� �{� � � � � � � � � � � � � � � � � � �"�p�r�o�p�e�r�t�i�e�s�"�:� �{� � � � � � � � � � � � � � � � � � � � � � �"�I�d�"�:� �{� � � � � � � � � � � � � � � � � � � � � � � � � � �"�t�y�p�e�"�:� �"�l�o�n�g�"� � � � � � � � � � � � � � � � � � � � � � �}� � � � � � � � � � � � � � � � � � �}� � � � � � � � � � � � � � �}� � � � � � � � � � �}� � � � � � �}� � �}� � �
��
�
�
�
�
�#�#� �f�a�q�
�
�1�.� �p�a�r�s�e� �f�a�i�l�e�d�,� �g�o�t� �e�m�p�t�y� �j�s�o�n�?�
�
� � � � �i�n� �t�h�i�s� �p�r�o�g�r�a�m�,� �I� �o�n�l�y� �i�m�p�o�r�t� �d�i�r�e�c�t� �p�a�c�k�a�g�e�s� �i�n� �t�h�e� �f�i�l�e� �h�e�a�d�e�r�,� �i�f� �y�o�u� �u�s�e� �o�v�e�r� �t�w�o� �l�e�v�e�l� �p�a�c�k�a�g�e�s�,� �i�t� �m�a�y� �c�a�n�n�o�t� �p�a�r�s�e�.�
�
� � � � �i�t�'�s� �b�e�t�t�e�r� �t�o� �a�d�d� ��i�m�p�o�r�t� �_� �"�o�t�h�e�r�_�p�a�c�k�a�g�e�"�
� �s�o� �i�t� �c�a�n� �s�e�a�r�c�h�.�