get most of optimizer building on new minijson.h