oops
[json serializer] refactor serializer