iveI've a little Problemproblem. My Java App convertapp converts it's modal object to jsonJSON (using the GSON Library).
This is just fine, but iI have to get it back into a modal in PHP. Now iveI've created a modal (in my case it's, for example, GeoLocation) which have several getters and setters.
Now iveI've a loader class which processes the jsonJSON and should re-create the object, as soon as the set()set<Varname>()
method exists. This is what iveI've done. IsAre there any "security problem""security" problems so far or any way to improve it?
Since the class methods are always synchronized with the javaJava classes, the getter and setter methods should always exist. Is there maybe a way of doing the getters and setters dynamically using the jsonJSON?
If there are jsonis JSON data which havehas no methods, like setJSONDataOfEvilStuff()setJSONDataOfEvilStuff()
, then itsit's not neccessarynecessarily so far.
Thanks