1 /******************************************************************************
2 * Copyright (c) 2000-2014 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 ******************************************************************************/
12 universal charstring str
14 variant(num) "JSON : default(0)";
15 variant(str) "JSON : default(empty)";
20 boolean buul optional,
21 verdicttype verd optional,
24 variant(numbr) "JSON : default(-infinity)";
25 variant(buul) "JSON:omit as null";
38 type enumerated Height { Short, Medium, Tall };
40 type enumerated Width { Thin, Medium, Wide };
42 external function f_enc_rec(in Rec x) return octetstring
43 with { extension "prototype(convert) encode(JSON)" }
45 external function f_dec_rec(in octetstring octie) return Rec
46 with { extension "prototype(convert) decode(JSON) errorbehavior(ALL:WARNING,INVAL_MSG:ERROR)" }
50 extension "anytype integer,boolean,bitstring";