fully dynamic json loading (horror code is horror)