How to pull out json from another file

I have a liquid file in which a json object is written using {%- schema -%}
And I want to extract this object in another file, how do I do it

Hi @Tony102 :waving_hand: {% schema %} is not an operable tag in liquid, or for creating custom schemas it’s only used for parts of theme architecture

https://shopify.dev/docs/api/liquid/tags

https://shopify.dev/docs/storefronts/themes/architecture/sections/section-schema

Use either a sections setting object and JSON filter to get settings data , etc.

Or use the proper {% javascript %} tag or just a vanilla tag to output js or json

https://shopify.dev/docs/api/liquid/tags/javascript