![Kotlin on Twitter: "Need to create a JSON object from within your Kotlin/JS code? Use the json function with your key-value pairs as parameters. Nesting and lists also work as expected. #KotlinTips Kotlin on Twitter: "Need to create a JSON object from within your Kotlin/JS code? Use the json function with your key-value pairs as parameters. Nesting and lists also work as expected. #KotlinTips](https://pbs.twimg.com/media/EG7YdzAUEAEPBu4.jpg:large)
Kotlin on Twitter: "Need to create a JSON object from within your Kotlin/JS code? Use the json function with your key-value pairs as parameters. Nesting and lists also work as expected. #KotlinTips
![DataFetchingException: Object is not an instance of declaring class · Issue #730 · ExpediaGroup/graphql-kotlin · GitHub DataFetchingException: Object is not an instance of declaring class · Issue #730 · ExpediaGroup/graphql-kotlin · GitHub](https://user-images.githubusercontent.com/8454621/83224922-2e856980-a1b1-11ea-81ac-833db4941864.png)
DataFetchingException: Object is not an instance of declaring class · Issue #730 · ExpediaGroup/graphql-kotlin · GitHub
![constructor - Why would you use a Kotlin companion object rather than an initializer block for creation? - Stack Overflow constructor - Why would you use a Kotlin companion object rather than an initializer block for creation? - Stack Overflow](https://i.stack.imgur.com/DLrpP.png)