# How to organize customized expectations via expectation suite in GX core 1.2.x

**URL:** <https://discourse.greatexpectations.io/t/how-to-organize-customized-expectations-via-expectation-suite-in-gx-core-1-2-x/2052>\
**Category:** GX Core Support\
**Created:** [January 14, 2025, 4:08am UTC](https://discourse.greatexpectations.io/t/how-to-organize-customized-expectations-via-expectation-suite-in-gx-core-1-2-x/2052 "2025-01-14T04:08:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkuxc](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@pkuxc](https://discourse.greatexpectations.io/u/pkuxc)\
**Post date:** [January 14, 2025, 4:08am UTC](https://discourse.greatexpectations.io/t/how-to-organize-customized-expectations-via-expectation-suite-in-gx-core-1-2-x/2052/1 "2025-01-14T04:08:01Z")

</div>

Hi dear GX team.  
Currently I am trying to define several custom expectations that inherited from the build-in expectations.  
If I directly put these expectations in the suite json file, GX context could not find the expectation because it is not a expectation belongs to core. This could be understood. But the question is how could I register these custom expectations to let GX core be aware of them. I found that in early version of core(such 0.14.13), register custom expectations is mentioned in such doc([How to use a Custom Expectation | Great Expectations](https://legacy.017.docs.greatexpectations.io/docs/0.14.13/guides/expectations/creating_custom_expectations/how_to_use_custom_expectations/)). Seems that in early version we could place the custom expectations in ‘plugin’ within our deployment. But in latest GX core, I did not find such topic is mentioned. So could anyone give me a hint on how to implement this.

---

<div class="post-metadata">

**Author:** ![bidek56](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@bidek56](https://discourse.greatexpectations.io/u/bidek56)\
**Post date:** [January 22, 2025, 6:43pm UTC](https://discourse.greatexpectations.io/t/how-to-organize-customized-expectations-via-expectation-suite-in-gx-core-1-2-x/2052/2 "2025-01-22T18:43:06Z")

</div>

[This](https://discourse.greatexpectations.io/t/expectationsuite-from-json-file/2017/4) solution worked for me.

```python
expectation_path = "./great_expectations/expectations/ge_attribute.json"
    if os.path.exists(expectation_path):
       with open(expectation_path) as json_file:
          suite_json = json.load(json_file)
          self.expectation_suite = ge.ExpectationSuite(**suite_json)

```
