added collection serialize
added tests
Merge branch 'feature/collections-serializer-for-json' into develop