Browse Source

Clarify JSON docs. (#10815)

Make it clear that -D haxeJSON does not support decoding enums, maps, etc.
Closes #10811.
Zeta 2 years ago
parent
commit
c53bf86f90
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/haxe/Json.hx

+ 1 - 1
std/haxe/Json.hx

@@ -25,7 +25,7 @@ package haxe;
 /**
 /**
 	Cross-platform JSON API: it will automatically use the optimized native API if available.
 	Cross-platform JSON API: it will automatically use the optimized native API if available.
 	Use `-D haxeJSON` to force usage of the Haxe implementation even if a native API is found:
 	Use `-D haxeJSON` to force usage of the Haxe implementation even if a native API is found:
-	This will provide extra encoding features such as enums (replaced by their index) and StringMaps.
+	This will provide extra encoding (but not decoding) features such as enums (replaced by their index) and StringMaps.
 
 
 	@see https://haxe.org/manual/std-Json.html
 	@see https://haxe.org/manual/std-Json.html
 **/
 **/