Format posts data into JSON (incomplete)