Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9 from StaticDefault/master
Browse files Browse the repository at this point in the history
Changed element's name.
  • Loading branch information
StaticDefaultTester2 authored Sep 27, 2019
2 parents a144b01 + 0b40bf2 commit a7acc85
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 94 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,38 +115,38 @@ KsonPool ksonPool = new KsonPool(ksonBuilder);
KsonContext ksonContext = ksonPool.get();
```

#### 2.2.2. String to KsonValue
#### 2.2.2. String to JsonValue
```
KsonContext ksonContext = new KsonContext();
String jsonString = "{...}";
KsonValue ksonValue = ksonContext.fromString(jsonString);
JsonValue JsonValue = ksonContext.fromString(jsonString);
```

#### 2.2.3. KsonValue to String
#### 2.2.3. JsonValue to String
```
KsonValue ksonValue = ...;
String jsonString = ksonValue.toJsonString(); //일반적인 Json 포맷을 이용합니다.
String ksonString = ksonValue.toKsonString(); //확장된 Kson 포맷을 이용합니다.
JsonValue JsonValue = ...;
String jsonString = JsonValue.toJsonString(); //일반적인 Json 포맷을 이용합니다.
String ksonString = JsonValue.toKsonString(); //확장된 Kson 포맷을 이용합니다.
```

#### 2.2.4. Object to KsonValue
#### 2.2.4. Object to JsonValue
```
KsonContext ksonContext = new KsonContext();
Person personObject = someObject;
KsonValue ksonValue = ksonContext.fromObject(personObject);
JsonValue JsonValue = ksonContext.fromObject(personObject);
```

#### 2.2.5. KsonValue to Object
#### 2.2.5. JsonValue to Object
```
KsonContext ksonContext = new KsonContext();
KsonValue ksonValue = ...;
Person personObject = ksonContext.toObject(Person.class, ksonValue);
JsonValue JsonValue = ...;
Person personObject = ksonContext.toObject(Person.class, JsonValue);
```

#### 2.2.6. String to (KsonValue) to Object
#### 2.2.6. String to (JsonValue) to Object
```
KsonContext ksonContext = new KsonContext();
Expand Down
24 changes: 12 additions & 12 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,38 +115,38 @@ KsonPool ksonPool = new KsonPool(ksonBuilder);
KsonContext ksonContext = ksonPool.get();
```

#### 2.2.2. String to KsonValue
#### 2.2.2. String to JsonValue
```
KsonContext ksonContext = new KsonContext();
String jsonString = "{...}";
KsonValue ksonValue = ksonContext.fromString(jsonString);
JsonValue jsonValue = ksonContext.fromString(jsonString);
```

#### 2.2.3. KsonValue to String
#### 2.2.3. JsonValue to String
```
KsonValue ksonValue = ...;
String jsonString = ksonValue.toJsonString(); //Usage of standard Json format.
String ksonString = ksonValue.toKsonString(); //Usage of extended Kson format.
JsonValue jsonValue = ...;
String jsonString = jsonValue.toJsonString(); //Usage of standard Json format.
String ksonString = jsonValue.toKsonString(); //Usage of extended Kson format.
```

#### 2.2.4. Object to KsonValue
#### 2.2.4. Object to JsonValue
```
KsonContext ksonContext = new KsonContext();
Person personObject = someObject;
KsonValue ksonValue = ksonContext.fromObject(personObject);
JsonValue jsonValue = ksonContext.fromObject(personObject);
```

#### 2.2.5. KsonValue to Object
#### 2.2.5. JsonValue to Object
```
KsonContext ksonContext = new KsonContext();
KsonValue ksonValue = ...;
Person personObject = ksonContext.toObject(Person.class, ksonValue);
JsonValue jsonValue = ...;
Person personObject = ksonContext.toObject(Person.class, jsonValue);
```

#### 2.2.6. String to (KsonValue) to Object
#### 2.2.6. String to (JsonValue) to Object
```
KsonContext ksonContext = new KsonContext();
Expand Down
Loading

0 comments on commit a7acc85

Please sign in to comment.