wrote an abstracted model parser that can handle AR models and JSON blobs and turn them into resources.