try to workaround max depth in json_encode using hhvm