package Ġcom . strument a . kol as u . emf . serialization Ċ Ċ import Ġcom . strument a . kol as u . emf . save As Json Ċ import Ġcom . strument a . kol as u . emf . to EObject Ċ import Ġcom . strument a . kol as u . model . Node Ċ import Ġcom . strument a . kol as u . validation . Result Ċ import Ġorg . eclipse . emf . ecore . E Package Ċ Ċ class ĠJson Generator Ġ{ ĊĠĠĠ Ġfun Ġgenerate EM F String ( result : ĠResult < out ĠNode >, Ġast Package : ĠE Package ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġresult . to EObject ( ast Package ). save As Json () ĊĠĠĠ Ġ} Ċ } Ċ