@@ -0,0 +1,1301 @@
+package com.suse.salt.netapi.parser;%0A%0Aimport com.google.gson.JsonParseException;%0Aimport com.google.gson.TypeAdapter;%0Aimport com.google.gson.stream.JsonReader;%0Aimport com.google.gson.stream.JsonToken;%0Aimport com.google.gson.stream.JsonWriter;%0A%0Aimport java.io.IOException;%0A%0Aclass Adapters %7B%0A    static final TypeAdapter%3CBoolean%3E BOOLEAN = new TypeAdapter%3CBoolean%3E() %7B%0A        @Override%0A        public Boolean read(JsonReader in) throws IOException %7B%0A            return in.nextBoolean();%0A        %7D%0A        @Override%0A        public void write(JsonWriter out, Boolean value) throws IOException %7B%0A            if (value == null) %7B%0A                throw new JsonParseException(%22null is not a valid value for boolean%22);%0A            %7D else %7B%0A                out.value(value);%0A            %7D%0A        %7D%0A    %7D;%0A%0A    static final TypeAdapter%3CString%3E STRING = new TypeAdapter%3CString%3E() %7B%0A        @Override%0A        public String read(JsonReader in) throws IOException %7B%0A            return in.nextString();%0A        %7D%0A        @Override%0A        public void write(JsonWriter out, String value) throws IOException %7B%0A            if (value == null) %7B%0A                throw new JsonParseException(%22null is not a valid value for string%22);%0A            %7D else %7B%0A                out.value(value);%0A            %7D%0A        %7D%0A    %7D;%0A%7D%0A

add strict parser for String and Boolean