add json serializer to runtime