JsonToObject vs Tajson
(Created page with "selfVM.JsonToObjects as described here Import xml and JSon with MDriven is available only in Viewodel and will import json from a string and fill in matching attributes an...")
 
No edit summary
Line 4: Line 4:


The [[Tajson|TaJSon]] strategy is different in that it always use a viewmodel as a template for both getting and setting data hierarchies to and from json strings. TaJson offers to update objects hieracies in a whole other way than JSonToObjects does as JSonToObjects always create new objects.
The [[Tajson|TaJSon]] strategy is different in that it always use a viewmodel as a template for both getting and setting data hierarchies to and from json strings. TaJson offers to update objects hieracies in a whole other way than JSonToObjects does as JSonToObjects always create new objects.
[[Category:View Model]]

Revision as of 08:38, 15 December 2022

selfVM.JsonToObjects as described here Import xml and JSon with MDriven is available only in Viewodel and will import json from a string and fill in matching attributes and associations from the model starting from an object that JSonToObjects create based on sent in type (first argument).

JSonToObjects offers no transformation layer between your Json and your model - things need to share names in order to match.

The TaJSon strategy is different in that it always use a viewmodel as a template for both getting and setting data hierarchies to and from json strings. TaJson offers to update objects hieracies in a whole other way than JSonToObjects does as JSonToObjects always create new objects.

This page was edited 99 days ago on 02/10/2024. What links here