make include_root_in_json configurable, defaults to false