Improved auto JSON parsing and adapting