retrieve json data from file instead of inline.