Add JSON representation of post/attachment
Working metadata in JSON representation