updates archiving sample app to use fixed toJson() method