perf3(3rdparty): expand json stack with pow of 2