Json Serialisation: Use helper function to read variables from the json