refactor includes_nested_json and add README example