...
This commit is contained in:
@@ -4,6 +4,12 @@ import json
|
||||
import x.json2 { Any }
|
||||
import freeflowuniverse.herolib.schemas.jsonschema { Reference, decode_schemaref }
|
||||
|
||||
pub fn decode_json_any(data string) !Any {
|
||||
// mut o:=decode(data)!
|
||||
return json2.decode[json2.Any](data)!
|
||||
}
|
||||
|
||||
|
||||
pub fn decode(data string) !OpenRPC {
|
||||
// mut object := json.decode[OpenRPC](data) or { return error('Failed to decode json\n=======\n${data}\n===========\n${err}') }
|
||||
mut object := json.decode(OpenRPC, data) or {
|
||||
|
||||
Reference in New Issue
Block a user