json parsing

This commit is contained in:
DieMyst
2019-08-14 16:35:24 +03:00
parent bf2219b82f
commit 2cbb41decf
11 changed files with 1422 additions and 0 deletions

View File

@ -0,0 +1,15 @@
import {handler} from "../main";
describe("example", () => {
it("can log some values to the console", () => {
log<string>("Hello world!"); // strings!
log<f64>(3.1415); // floats!
log<u8>(244); // integers!
log<u64>(0xFFFFFFFF); // long values!
log<string>(handler('{"hi": "hi"}'));
log<string>(handler('{"action": "Post", "msg": "Hello, Fluence!", "handle": "fluencer"}'));
log<string>(handler('{"action": "Post", "msg": "Hello, fluencer!", "handle": "John Doe"}'));
log<string>(handler('{"action": "Fetch"}'));
});
});