escaping json for timeline widget