Add read of string.
Reorg read of count.
Be more circumspect about the writing of non-conformant JSON.
When on Android, use the android log mechanism.