Changed JSON serialization/deserialization functions to static