json parser BUGFIX wrong use input for action
diff --git a/src/parser_json.c b/src/parser_json.c
index bc9b352..f009229 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -901,7 +901,7 @@
         }
 
         /* go through RPC's input/output following the options' data type */
-        if ((*parent)->schema->nodetype == LYS_RPC) {
+        if ((*parent)->schema->nodetype == LYS_RPC || (*parent)->schema->nodetype == LYS_ACTION) {
             while ((schema = (struct lys_node *)lys_getnext(schema, (*parent)->schema, NULL, LYS_GETNEXT_WITHINOUT))) {
                 if ((options & LYD_OPT_RPC) && (schema->nodetype == LYS_INPUT)) {
                     break;