Fix export inv.objectmodel to JSON See merge request !2140 (cherry picked from commit bbfcda91) 93b69e11 Fix export inv.objectmodel to JSON