Assuming we are in a modern development every object (codeunit) knows how to convert to JSON. For that reason the first component is an interface “IJsonObjectConverter” which is implemented by every “object” codeunit.
Posted inDynamics NAV & BC Tips & tricks