fix a label decoding issue
fix json formating
report json version on decode