Are you actually arguing that using a JSON parser for JSON-formatted data is a premature optimization? The solution here was to use a different format, not a somewhat-JSON-compatible hacked together parser.
The premature optimization would be trying to optimize that piece of code without that being necessary given what the code was meant to do.