--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/340b7c1e-bded-4644-9341-f1d64de46272n%40googlegroups.com.
What you describe matches three common issues:
UTF-8 BOM at the start (EF BB BF) → appears as a weird first character in the debugger.
Many backslashes → either just the escaped view in the debugger, or you actually loaded a JSON string that itself contains JSON (double-encoded).
Cut off at the end → the file is not complete JSON; no decoder can parse that until you fix the upstream/paging.
MemoRead() itself doesn’t add characters, but for robust handling I recommend reading raw bytes and normalizing BOM/trailing control chars (including legacy ^Z / 0x1A). If the file contains a JSON string, decode it twice: first to get the string, second to get the object.
FiveWin JSON Reader
Flatten JSON into PATH/TYPE/VALUE rows and view with XBROWSER. Includes a tolerant loader (BOM/^Z).
Are you aware that MEMOREAD() has a limitation of 65,535 bytes? One possible reason for an error.