changed array_as_json to class method
Merge pull request #67 from RestPack/gj/change-to-class-method

changed array_as_json to class method