diff options
author | Louis Pilfold <louis@lpil.uk> | 2022-01-01 16:03:32 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2022-01-01 16:03:32 +0000 |
commit | d3d0ff192ebb29827c63e28f3aa8ef101b575efe (patch) | |
tree | bd1c64fcab00c9b0f0684b54f30e0da90a159207 /src | |
parent | cdcf2fffcc49e0d5d24708cb54169a96fa356054 (diff) | |
download | gleam_json-d3d0ff192ebb29827c63e28f3aa8ef101b575efe.tar.gz gleam_json-d3d0ff192ebb29827c63e28f3aa8ef101b575efe.zip |
Test string builder generation
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/json.gleam | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gleam/json.gleam b/src/gleam/json.gleam index 43c8dda..b509d7c 100644 --- a/src/gleam/json.gleam +++ b/src/gleam/json.gleam @@ -13,22 +13,18 @@ pub type DecodeError { } // TODO: document -// TODO: test pub external fn decode(String) -> Result(Dynamic, DecodeError) = "thoas" "decode" // TODO: document -// TODO: test pub external fn to_string(Json) -> String = "gleam_json_ffi" "json_to_string" // TODO: document -// TODO: test -external fn to_string_builder(Json) -> String = - "thoas_encode" "encode" +pub external fn to_string_builder(Json) -> StringBuilder = + "gleam_json_ffi" "json_to_iodata" // TODO: document -// TODO: test pub external fn string(input: String) -> Json = "thoas_encode" "string" @@ -38,7 +34,6 @@ pub external fn bool(input: Bool) -> Json = "thoas_encode" "boolean" // TODO: document -// TODO: test pub external fn int(input: Int) -> Json = "thoas_encode" "integer" |