public String toJsonString ( ) throws Exception { List < ? > rootContainerJsonList = ( List < ? > ) Json . runtimeObjectToJToken ( mainContentContainer ) ; HashMap < String , Object > rootObject = new HashMap < String , Object > ( ) ; rootObject . put ( "inkVersion" , inkVersionCurrent ) ; rootObject . put ( "root" , rootContainerJsonList ) ; return SimpleJson . HashMapToText ( rootObject ) ; }
The Story itself in JSON representation .