serialize posts with json