Module RandomTrainSimWorld2.main
Class JsonUtils
java.lang.Object
com.github.freddyyj.randomtrainsimworld.util.JsonUtils
public class JsonUtils extends Object
utilities related with Json
- Version:
- 0.2.0
- Author:
- FreddyYJ_
-
Constructor Summary
Constructors Constructor Description JsonUtils()
-
Method Summary
-
Constructor Details
-
JsonUtils
public JsonUtils()
-
-
Method Details
-
write
writeJsonObject
to file.- Parameters:
object
- JsonObject that want to writetargetFile
- target file- Throws:
IOException
- If output error occurred
-
write
writeJsonArray
to file.- Parameters:
object
- JsonArray that want to writetargetFile
- target file- Throws:
IOException
- If output error occurred
-