fix json serde with configurations