Package io.kjson
Interface JSONValue
-
- All Implemented Interfaces:
public interface JSONValueInterface to represent a JSON value.
-
-
Method Summary
Modifier and Type Method Description abstract UnitappendTo(Appendable a)Append as a JSON string to an Appendable. abstract StringtoJSON()Convert to a JSON string. UnitoutputTo(IntConsumer out)Output as a JSON string to an IntConsumer. Unitoutput(IntConsumer out)Output as a JSON string to an IntConsumer. UnitcoOutputTo(SuspendFunction1<Character, Unit> out)Output as a JSON string to a CoOutput. UnitcoOutput(SuspendFunction1<Character, Unit> out)Output as a JSON string to a CoOutput. -
-
Method Detail
-
appendTo
abstract Unit appendTo(Appendable a)
Append as a JSON string to an Appendable.
-
outputTo
Unit outputTo(IntConsumer out)
Output as a JSON string to an IntConsumer.
-
output
@Deprecated(message = "renamed to outputTo", replaceWith = @ReplaceWith(imports = {}, expression = "outputTo(out)")) Unit output(IntConsumer out)
Output as a JSON string to an IntConsumer.
-
coOutputTo
Unit coOutputTo(SuspendFunction1<Character, Unit> out)
Output as a JSON string to a CoOutput.
-
coOutput
@Deprecated(message = "renamed to coOutputTo", replaceWith = @ReplaceWith(imports = {}, expression = "coOutputTo(out)")) Unit coOutput(SuspendFunction1<Character, Unit> out)
Output as a JSON string to a CoOutput.
-
-
-
-