added post and json serialization