---
title: "Can Autobahn use a custom json encoder?"  
description: "Can Autobahn use a custom json encoder?"  
author: "Madam Walker"  
published: 2013-06-20  
updated: 2013-06-20  
canonical: https://www.mindstick.com/forum/1252/can-autobahn-use-a-custom-json-encoder  
category: "json"  
tags: ["json"]  
reading_time: 1 minute  

---

# Can Autobahn use a custom json encoder?

Hi [Developers](https://www.mindstick.com/articles/12875/blunders-you-must-avoid-while-hiring-java-developers-to-get-the-best-fulfilling-your-needs), \
\
When doing RPC with autobahn, autobahn [supports](https://www.mindstick.com/blog/12043/how-to-create-a-killer-mobile-app-that-supports-your-brand) procedures [returning](https://www.mindstick.com/news/2477/returning-ceo-bob-iger-dismisses-the-disney-apple-sale-as-pure-speculation) [python](https://www.mindstick.com/articles/75378/simple-yet-useful-tips-when-using-python) [objects](https://www.mindstick.com/forum/145447/what-are-objects) as [long](https://www.mindstick.com/articles/44565/white-wedding-dresses-long-prom-dresses) as they are json serializable. Some objects I'd like to return are not by [default](https://www.mindstick.com/interview/12771/what-is-the-importance-of-default-resources) json serializable. I can easily write a [custom](https://www.mindstick.com/blog/12298/use-custom-writing-services-to-get-through-the-finals) [encoder](https://answers.mindstick.com/qa/97016/what-is-an-encoder), but how would autobahn know it needs to use it?\
\
Thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams) for any recommendations or solutions.\

## Replies

### Reply by AVADHESH PATEL

You can override _serialize and _unserialize on your factories. See here. Please note that this API is (currently) not promised to be stable.


---

Original Source: https://www.mindstick.com/forum/1252/can-autobahn-use-a-custom-json-encoder

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
