using json data for flat pages